gentlestone a écrit :

(snip)

one more question - __class__ is the way for getting the classname
from the class instance -

obj.__class__ is a reference to the class object itself, not it's name.

how can I get the module name?

module_obj.__name__

And while we're at it: obj.__class__.__module__ might be of some interest too.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to