defining __repr__

sven ml.sven at subscience.de
Mon Sep 12 20:14:18 CEST 2005


hi list,
i'd like to define __repr__ in a class to return the standardrepr
a la "<__main__.A instance at 0x015B3DA0>"
plus additional information.
how would i have to do that?
how to get the standardrepr after i've defined __repr__?

sven.




More information about the Python-list mailing list