How to do a controlled exec compiled and dynamic-load files?

Ken Manheimer (ken.manheimer@NIST.GOV)
Wed, 25 Jan 1995 15:18:04 -0500 (EST)

I need to be able to control loads of compiled and dynamic-load (as
well as normal source) files, in order to implement an extension to
the python import statement. Is there a way to do so that i'm
missing?

In particular, i need to load the files with respect to specific
environment bindings, which i do not seem to be able to control using
the new 'imp' module's '.load_compiled()' and '.load_dynamic()'. Is
there any way from within python to read in a compiled or dynamic-load
file and execute it, wrt a particular binding environment?

Ken
ken.manheimer@nist.gov, 301 975-3539