easy way to dump a class instance?

Kamilche klachemin at comcast.net
Fri May 5 21:12:33 CEST 2006


Mark Harrison wrote:
> Is there a way to automatically print all the instance
> data in a class?  

print self.__dict__




More information about the Python-list mailing list