getattr from local scope

Edward Elliott nobody at 127.0.0.1
Sun Apr 23 18:56:49 EDT 2006


Alex Martelli wrote:
> sys.modules[__name__].__dict__ may be more handily accessed by the
> built-in function globals().

Well there you go.  Glad it's not that awkward.



More information about the Python-list mailing list