default repr?

Dan Stromberg drsalists at gmail.com
Mon Jul 23 00:48:04 CEST 2012


If a class has defined its own __repr__ method, is there a way of getting
the default repr output for that class anyway?

I'm attempting to graph some objects by digging around in the garbage
collector's idea of what objects exist, and when I go to format them for
the graph node labels, the ones that haven't defined a __repr__ look nice,
but the ones that have come out looking strangely.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120722/cd5d9e8b/attachment.html>


More information about the Python-list mailing list