All names in the current module

Lawrence Oluyede raims at dot.com
Wed Aug 15 20:40:17 CEST 2007


Fabio Z Tessitore <fabioztessitore at libero.it> wrote:
> to get names' list you can simply call globals()

Not strictly true. globals() returns the current's scope global vars. If
you import a module in the current scope globals() won't display the
names inside it.

-- 
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand 
something when his salary depends on not
understanding it" - Upton Sinclair



More information about the Python-list mailing list