473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Would this be called a bug in inspect ?

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

Sep 30 '08 #1
0 878

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Florian Link | last post by:
Purpose: Dynamically multiplex PyMethodDefs to QT Slots Hi, I would like to create a PyObject using the C API which can dispatch calls to it's methods to just ONE C function, which then...
1
by: Thomas Guettler | last post by:
Hi, the line numbers of inspect.getinnerframes are different from traceback.format_exception. This results in wrong lines being shown in cgitb. An example is below. I looked at the...
11
by: It's me | last post by:
I discovered the hardway what inspect.isclass() is doing. Consider this no brainer code: ### import inspect class Abc: def Hello(self): return
0
by: Ron Adam | last post by:
While playing around with the inspect module I found that the Blockfinder doesn't recognize single line function definitions. Adding the following two lines to it fixes it, but I'm not sure if it...
1
by: aj | last post by:
What is the difference (if any) between inspect check database and db2dart ??? Do they both find the same potential problems? Does one provide more comprehensive checking than the other? ...
4
by: Chris Pax | last post by:
Hello, I recently been trying to use the inspect module to inspect the arguments of gtk objects, such as gtk.Button. I tried like this: inspect.getargspec(gtk.Button.__init__) and get the...
0
by: Gabriel Genellina | last post by:
En Tue, 30 Sep 2008 14:57:55 -0300, Stef Mientki <stef.mientki@gmail.com> escribió: Yes. getmembers works fine; try m=getmembers(wx) and see. It fails when you attemp to print (or pprint)...
8
by: Aaron \Castironpi\ Brady | last post by:
Hello, The 'inspect' module has this method: inspect.getargvalues(frame) It takes a frame and returns the parameters used to call it, including the locals as defined in the frame, as shown....
0
by: rajasankar | last post by:
Hi, I am using Jython based application and trying to use inspect.py in the python files. Here is my code import inspect,os,sys,pprint,imp def handle_stackframe_without_leak(getframe): ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.