[summerofcode] my project idea for soc
Skip Montanaro
skip at pobox.com
Sun Jun 5 00:29:00 CEST 2005
Rahul> We can make better use of dynamic nature of python as well as the
Rahul> availability of tkinter in standard python distribution for a
Rahul> visual object inspector. For example during debugging it will be
Rahul> helpful to view an object.
Rahul> Intended features:
Rahul> 1.The view of an object must display the class , attributes and
Rahul> documentation.
...
FYI, check out the _PyObject_Dump and _PyGC_Dump APIs, and the corresponding
usage in Misc/gdbinit:
# Prints a representation of the object to stderr, along with the
# number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyObject*
define pyo
print _PyObject_Dump($arg0)
end
# Prints a representation of the object to stderr, along with the
# number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyGC_Head*
define pyg
print _PyGC_Dump($arg0)
end
Extending them would probably be a good place to start. It would be nice if
they could optionally display the attributes of an object as well.
Skip
More information about the summerofcode
mailing list