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

Gustavo Cordova gcordova@hebmex.com
Tue, 12 Mar 2002 11:50:42 -0600


Hi all, sorry for posting to this list.

I found a (maybe?) new bug, which crashes the interpreter. Just do this (is't repeatable):

from types import * mod =3D ModuleType.new(ModuleType) mod

Upon trying to do a str(mod) to print it (I believe), the VM crashes and burns.

I was searching for a way to construct a new module from it's file's compiled bytecode (just read() the "*.pyc" file), so I thought maybe the ModuleType had some kind of constructor which could use the compiled byte code.

I don't have web access, so I couldn't post it as a bug report in sourceforge. --=20 Gustavo C=F3rdova Avila

gcordova@sismex.com =C5 8351-3861 | 8351-3862