Viewing contents of an object
Per Kistler
kistler at fnmail.com
Thu Aug 19 21:36:20 EDT 1999
Hi
You proably want more than:
import Tkinter
dir(Tkinter)
...
dir(Tkinter.Tributton)
...
But that's all I know.
Cheers, Per.
The Blue Wizard wrote:
>
> 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
--
Per Kistler kistler at fnmail.com / kistler at gmx.net
------------------------------------------------------------
More information about the Python-list
mailing list