global __dict__
Niki Spahiev
spahievi at vega.bg
Mon Dec 11 15:40:24 EST 2000
11.12.2000, 17:05:26, Carsten Geckeler wrote:
CG> Hi.
CG> I was wondering if there is a __dict__ dictionary for the global namespace
CG> as for classes and modules. I was trying the following
>>>> var = 1
>>>> __dict__
CG> and expected that __dict__ would contain something like {..., 'var': 1},
CG> but there is no global __dict__. Where can i find the global dictionary?
>From globals()
--
Best regards,
Niki Spahiev
More information about the Python-list
mailing list