a quick question about namespaces
Jay donnell
jaydonnell at gmail.com
Wed Feb 2 01:08:36 EST 2005
in the code below 'print locals()' shows mc2. What is the equivalent
way to see the namespace that mc resides in?
class myClass:
--def func1(self):
----self.mc = 1
----mc2 = 3
----print 'in myClass.func1'
----print 'printing locals'
----print locals()
----print
Google mungs up the spacing so I put a - in place of spaces. Does
anyone know how to get around this spacing issue on google groups?
More information about the Python-list
mailing list