Get current class namespace.

Robert Rawlins robert.rawlins at thinkbluemedia.co.uk
Wed Jul 16 07:56:08 EDT 2008


Guys,

 

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.

 

Cheers,

 

Robert

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080716/18f48502/attachment.html>


More information about the Python-list mailing list