getmembers(wx) gives an error, wx-bug ?

hello,

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

Is this a wx bug ?

cheers,
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 *'

Stef Mientki wrote:

hello,

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

Is this a wx bug ?

Upgrade your wxPython. This has been fixed. (Well, worked-around actually. I think that the fact that the inspect module is not checking for exceptions is a bug in the inspect module, but that's just my opinion.)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Stef Mientki wrote:

hello,

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

Is this a wx bug ?

Upgrade your wxPython. This has been fixed. (Well, worked-around actually.

Good to know, I'll update when I've some more time.

I think that the fact that the inspect module is not checking for exceptions is a bug in the inspect module, but that's just my opinion.)

I agree !

thanks,
Stef