determining fully qualified package & class name

Goldfish gregturn at mindspring.com
Thu Oct 11 22:08:15 CEST 2007


import myPackage

f = myPackage.foo()

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

That should do it!




More information about the Python-list mailing list