determining fully qualified package & class name

Goldfish gregturn at mindspring.com
Thu Oct 11 16:08:15 EDT 2007


import myPackage

f = myPackage.foo()

print f.__module__ + "." + f.__class__.__name__

That should do it!




More information about the Python-list mailing list