easy way to dump a class instance?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Fri May 5 18:49:10 EDT 2006


Kamilche a écrit :
> Mark Harrison wrote:
> 
>>Is there a way to automatically print all the instance
>>data in a class?  
> 
> 
> print self.__dict__
> 
Yeps - if you don't mind missing class attributes and data descriptors.



More information about the Python-list mailing list