Executing bytecode from a string.

Benjamin Scherrey scherrey at proteus-tech.com
Wed Aug 11 03:18:34 EDT 2004


I'm curious as to how difficult it would be to take a string that contains
compiled bytecode, load it into memory, give it a function name then
execute that function. I'm thinking of a database that contains compiled
objects that I can load and execute. I'm also curious as to what level of
grainularity this would work - module, class, class method, function?
Anyone tried to do this before? Obviously dependencies are a consideration
but I'm more interested in the mechanics of this. Appreciate ideas &
pointers you might have...

	Ben Scherrey



More information about the Python-list mailing list