All names in the current module

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

Fabio Z Tessitore <fabioztessitore at> 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, -
"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