Viewing contents of an object

The Blue Wizard TheBlueWizard at
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



The Blue Wizard

More information about the Python-list mailing list