Is there a better way of accessing functions in a module?

Ant antroy at gmail.com
Tue Jun 13 13:08:41 EDT 2006


Ant wrote:
...
> But this feels like a hack... Is there a cleaner way for accessing the
> functions of the current module similar to the __dict__ attribute of
> classes? i.e. a way to access the local symbol table?

Sorry - posted too soon. Found the globals() built-in...




More information about the Python-list mailing list