wxPython: help(wx) causes segfaulting?

Franz Steinhaeusler franz.steinhaeusler at gmx.at
Mon Feb 27 04:52:57 EST 2006


On Sun, 26 Feb 2006 10:35:13 -0600, Tim Chase
<python.list at tim.thechases.com> wrote:

>Trying to get my feet wet with wxPython (moving from just 
>command-line apps), I tried the obvious (or, at least to me 
>was obvious):
>
>Start python, "import wx" and then do a "help(wx)" to see 
>what it can tell me.
 
I tried it on Windows Xp, and I got also a traceback:

>>> help (wx)
Traceback (most recent call last):
  File "<input>", line 1, in ?
  File "C:\Python24\lib\site.py", line 328, in __call__
    return pydoc.help(*args, **kwds)
  File "C:\Python24\lib\pydoc.py", line 1640, in __call__
    self.help(request)
  File "C:\Python24\lib\pydoc.py", line 1684, in help
    else: doc(request, 'Help on %s:')
  File "C:\Python24\lib\pydoc.py", line 1468, in doc
    pager(title % desc + '\n\n' + text.document(object, name))
  File "C:\Python24\lib\pydoc.py", line 296, in document
    if inspect.ismodule(object): return self.docmodule(*args)
  File "C:\Python24\lib\pydoc.py", line 1070, in docmodule
    contents.append(self.document(value, key, name))
  File "C:\Python24\lib\pydoc.py", line 297, in document
    if inspect.isclass(object): return self.docclass(*args)
  File "C:\Python24\lib\pydoc.py", line 1194, in docclass
    lambda t: t[1] == 'method')
  File "C:\Python24\lib\pydoc.py", line 1144, in spill
    name, mod, object))
  File "C:\Python24\lib\pydoc.py", line 298, in document
    if inspect.isroutine(object): return self.docroutine(*args)
  File "C:\Python24\lib\pydoc.py", line 1255, in docroutine
    doc = getdoc(object) or ''
  File "C:\Python24\lib\pydoc.py", line 76, in getdoc
    result = inspect.getdoc(object) or inspect.getcomments(object)
  File "C:\Python24\lib\inspect.py", line 448, in getcomments
    lines, lnum = findsource(object)
  File "C:\Python24\lib\inspect.py", line 437, in findsource
    if pat.match(lines[lnum]): break
IndexError: list index out of range

-- 
Franz Steinhaeusler



More information about the Python-list mailing list