Get Class properties

Emeka emekamicro at gmail.com
Wed Dec 28 07:05:56 EST 2011


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


*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111228/593378e4/attachment.html>


More information about the Python-list mailing list