easy way to dump a class instance?

Kamilche klachemin at comcast.net
Fri May 5 15:12:33 EDT 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