Get current class namespace.

Robert Rawlins robert.rawlins at
Wed Jul 16 13:56:08 CEST 2008



What's the simplest way to access a classes namespace from within itself. I
want to use it in a custom __repr__() method so it prints the current
namespace for the class like package.module.class.


Suggestions? I'm sure there is a simple enough method built in to help me
here, I've just not seen it before.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list