Re: Would this be called a bug in inspect ?



Stef Mientki wrote:

print getmembers ( wx )
crashes

but not always:
>>> print getmembers (wx)
[('ACCEL_ALT', 1), ('ACCEL_CMD', 2), ('ACCEL_CTRL', 2), ('ACCEL_NORMAL', 0), ('ACCEL_SHIFT', 4), ('ADJUST_MINSIZE', 0), (

I suspect that wx has an erratic bug, which their tests do not catch.
So I would send this off to them.

>>> print getmembers (wx)
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
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 *'

.



Relevant Pages

  • Re: Would this be called a bug in inspect ?
    ... getmembers ... (inspect crashes and doesn't continue with th rest of the code, nor it returns the already gathered data) ... >>> print getmembers ... Traceback: ...
    (comp.lang.python)
  • Re: Would this be called a bug in inspect ?
    ... Terry Reedy wrote: ... >>> print getmembers ... I did, and the bug is already fixed, ...
    (comp.lang.python)
  • Problem with exe from py2exe
    ... My script runs fine with python, but the .exe produced with py2exe ... crashes out with: ... Traceback: ... AttributeError: ...
    (comp.lang.python)
  • Intel Fortran under Linux
    ... Under Linux it compiles well with Intel Fortran 8.1 but in some case it crashes ... on NaN diagnostic but don't give the routine that produce the error. ... I tried -g -O0 options to obtain traceback, ...
    (comp.lang.fortran)