Viewing contents of an object

The Blue Wizard TheBlueWizard at pressroom.com
Thu Aug 19 20:49:51 EDT 1999


Hi Pythoneers!

I would like to be able to view the content of an arbitrary object, e.g.
view(myObject) would print
class: myClass
class variables:
    counter   = 6
    topicoftheday = "Python is fun!"
instance variables:
    x = 4
    y = 7

Thanks!

Cheers!

The Blue Wizard





More information about the Python-list mailing list