Mike wrote:
> Is there any way around this?  Can I somehow scope the 'current
> module' and give getattr(...) an object that will (at run time) have
> the appropriate bindings?

globals() for the current name space

import sys
sys.modules[__name__] gets you the module object

Christian

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

Reply via email to