Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Object introspection (See related posts)

   1  
   2  dir(obj)
   3  vars(obj)
   4  obj.__dict__


There are more information when call it again with
obj.__class__ and klass.__bases__

You need to create an account or log in to post comments to this site.


Click here to browse all 5502 code snippets

Related Posts