Viewing contents of an object

The Blue Wizard TheBlueWizard at pressroom.com
Fri Aug 20 02:49:51 CEST 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