★ wanayoo — archive 1999 http://www.python.org/search/hypermail/python-1994q3/0483.htmlNouvelle recherche | Portail wanayoo
Python Archives (1994q3): putting objects into the module dictionary

putting objects into the module dictionary

C. Derek Fields (derek@gamekeeper.bellcore.com)
Tue, 13 Sep 94 12:08:10 -0400

I have the following code that is supposed to (re)place an object into
the module name space.

object *mod = add_module("foo");

object *d = getmoduledict(mod);
dictinsert(d, "currentScreen", (object *)thisScreen_);

when I call a procedure with:

run_string("foo.bar()", ...);
which runs:
def bar:
print vars()

I don't see currentScreen in the module dictionary.

Thanks for the help.

--
Derek Fields
(derek@cc.bellcore.com)