Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Would this be called a bug in inspect ?

Reply
Thread Tools

Would this be called a bug in inspect ?

 
 
Stef Mientki
Guest
Posts: n/a
 
      09-30-2008
hello,


I'm not familiar with inspect,
but I get an error (see below) in
getmembers ( wx )

Of course this is bug in wx .

But would you also call this a bug in inspect ?
(inspect crashes and doesn't continue with th rest of the code, nor it
returns the already gathered data)

thanks,
Stef

>>> import wx
>>> wx.version()

'2.8.7.1 (msw-unicode)'
>>> from inspect import *
>>> getmembers(wx)

Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "<from
<Rpyc.Connection.Connection(<Channel(<SocketStream (127.0.0.1:1184)>)>)>>",
line 517, in pphook
File "P:\Python\Lib\pprint.py", line 55, in pprint
printer.pprint(object)
File "P:\Python\Lib\pprint.py", line 106, in pprint
self._format(object, self._stream, 0, 0, {}, 0)
File "P:\Python\Lib\pprint.py", line 129, in _format
rep = self._repr(object, context, level - 1)
File "P:\Python\Lib\pprint.py", line 195, in _repr
self._depth, level)
File "P:\Python\Lib\pprint.py", line 207, in format
return _safe_repr(object, context, maxlevels, level)
File "P:\Python\Lib\pprint.py", line 283, in _safe_repr
orepr, oreadable, orecur = _safe_repr(o, context, maxlevels, level)
File "P:\Python\Lib\pprint.py", line 283, in _safe_repr
orepr, oreadable, orecur = _safe_repr(o, context, maxlevels, level)
File "P:\Python\Lib\pprint.py", line 292, in _safe_repr
rep = repr(object)
File "P:\Python\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 "P:\Python\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 *'

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
inspect.stack() or inspect.currentframe() gives "list index out ofrange error" deluxstar Python 5 09-25-2010 05:12 PM
would this be called bug? Amit Gupta Python 2 05-24-2008 05:15 AM
Why would I use inspect.isclass()? It's me Python 11 12-30-2004 05:59 PM
Bug in inspect.py for python 2.3? Fernando Perez Python 2 12-18-2004 12:32 AM
bug in inspect (was cgitb vs traceback) Robin Becker Python 1 06-06-2004 12:05 PM



Advertisments