Something like java's reflection???

Frank Buss fb at
Tue Aug 27 22:32:20 CEST 2002

"James Kew" <james.kew at> wrote:

> Or use the inspect module, which provides more information than I'm
> currently capable of understanding...

Thanks, that's better. You can use it for classes and objects:

>>> import inspect, string
>>> inspect.getmembers(string)
[ snipped long members list ]
>>> a="hello"
>>> inspect.getmembers(a)
[ snipped long members list ]

Frank Buß, fb at,

More information about the Python-list mailing list