Problem with help(wx)

I used this code to capture all wx docstrings to a file:

` import sys

import wx

sys.stdout = sys.stderr =

open(“help_wx.txt”,‘w’)

help(wx)

sys.stdout = sys.stderr = sys.__stdout__  #

restore the standard stdout

`But this is what comes back, i.e., what gets written into file
help_wx.txt:

` Traceback (most recent call last):

  File

“C:\X\PY\wx\ctk\help_wx.py”, line 5, in

    help(wx)

  File "C:\Python25\lib\site.py",

line 346, in call

    return pydoc.help(*args,

**kwds)

  File "C:\Python25\lib\pydoc.py",

line 1645, in call

    self.help(request)

  File "C:\Python25\lib\pydoc.py",

line 1689, in help

    else: doc(request, 'Help on

%s:’)

  File "C:\Python25\lib\pydoc.py",

line 1481, in doc

    pager(title % desc + '\n\n' +

text.document(object, name))

  File "C:\Python25\lib\pydoc.py",

line 324, in document

    if inspect.ismodule(object):

return self.docmodule(*args)

  File "C:\Python25\lib\pydoc.py",

line 1084, in docmodule

contents.append(self.docother(value, key, name, maxlen=70))

  File "C:\Python25\lib\pydoc.py",

line 1283, in docother

    repr = self.repr(object)

  File "C:\Python25\lib\repr.py",

line 24, in repr

    return self.repr1(x,

self.maxlevel)

  File "C:\Python25\lib\pydoc.py",

line 951, in repr1

    return cram(stripid(repr(x)),

self.maxother)

  File

“C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx_gdi.py”,
line 242, in repr

    def

repr(self):
return ‘wx.Colour’ + str(self.Get(True))

  File

“C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx_gdi.py”,
line 230, in Get

    return _gdi_.Colour_Get(*args,

**kwargs)

TypeError: in method 'Colour_Get', expected argument 1

of type ‘wxColour *’

`I have no trouble capturing the docstrings for other modules, e.g.,
for os. So what gives here?? And what can be done about
it?

I’m using Pythong 2.5.1 and wxPython 2.8.4 on my XP SP2 machine.

Bob