[Python-Dev] Python interpreter crash. (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 13 Mar 2002 14:07:40 +1300 (NZDT)


Gustavo Cordova <gcordova@hebmex.com>:

I was searching for a way to construct a new module from it's file's compiled bytecode (just read() the "*.pyc" file),

The imp module provides various functions for loading modules. Maybe something there will do what you want?

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+