global __dict__

Carsten Geckeler nospam at no.spam
Mon Dec 11 16:05:26 CET 2000


I was wondering if there is a __dict__ dictionary for the global namespace
as for classes and modules.  I was trying the following

>>> var = 1
>>> __dict__

and expected that __dict__ would contain something like {..., 'var': 1},
but there is no global __dict__.  Where can i find the global dictionary?

Cheers, Carsten
Carsten Geckeler:  carsten dot geckeler at gmx dot de
To get proper email-address replace `dot' and `at' by the corresponding symbols.

More information about the Python-list mailing list