Get Class properties
Emeka
emekamicro at gmail.com
Wed Dec 28 07:13:41 EST 2011
Hello All,
I have seen what I am looking for.. __dict__.
Thanks!
Regards,
Janus
On Wed, Dec 28, 2011 at 1:05 PM, Emeka <emekamicro at gmail.com> wrote:
>
> Hello All,
>
> Say I have a class like below
>
> class Town:
> state = StateClass()
> cities = CityClass()
>
>
> Is there way to introspect such that one can list the properties keys and
> their values in such a way that it would look like playing around
> dictionary ?
>
> Regards,
> Janus
> --
> *Satajanus Nig. Ltd
>
>
> *
>
--
*Satajanus Nig. Ltd
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111228/089fba86/attachment-0001.html>
More information about the Python-list
mailing list