Accessing current namespace's dictionary...
Michael Morrison
borlak at home.com
Fri Jul 21 16:06:08 EDT 2000
What I'm doing is I have a dictionary that I want added to the modules
namespace dictionary.
I'm trying to access the module that is running namespace dictionary, but I
can't seem to find a way to do it.
something like
class C:
def foo():
__dict__[key] = value
Doesn't seem to work. I tried making __dict__ global and failed miserably
:P I don't want to result in calling the filename, I want it to be as
dynamic as possible.
Thanks for any input. Hope I was clear enough :)
Michael
More information about the Python-list
mailing list