Quick question: forcing exec() within a specific namespace

Sarino Suon pioneer at wam.umd.edu
Thu May 20 11:13:07 EDT 1999


In the interactive interpreter, when I call exec(), whatever objects are
created belong to the __main__ module. What if I need the objects to be
attached to a specific object, such as a class instance? Can this be done?

							--- Sarino





More information about the Python-list mailing list