Howto debug self?

Martin v. Löwis loewis at informatik.hu-berlin.de
Mon Sep 9 05:22:46 EDT 2002


Oliver Eichler <oliver.eichler at dspsolutions.de> writes:

> Is it possible to debug self with pdb? I mean it in the sense of getting a 
> list of vars and their values. 

If you print dir(self), you will get the names instance attributes. If
you print self.__dict__, you will get the instance dictionary.

HTH,
Martin



More information about the Python-list mailing list