determining instance attributes

Jon Bills jon_bills at hotmail.com
Wed Jul 3 09:37:58 EDT 2002


"Ralf Juengling" <juenglin at informatik.uni-freiburg.de> wrote in message
news:xduu1nhxdvz.fsf at kantine.informatik.uni-freiburg.de...
> Hi,
>
> how can an instance easily find out all its non-method
> instance attributes?

This information is held in the __dict__ member of the instance.

> Cheers,
> Ralf

Cheers,

Jon.





More information about the Python-list mailing list