Something like java's reflection???
Frank Buss
fb at frank-buss.de
Tue Aug 27 16:32:20 EDT 2002
"James Kew" <james.kew at btinternet.com> 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 frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de
More information about the Python-list
mailing list