[Python-bugs-list] [ python-Bugs-529050 ] ModuleType.__new__ crash

noreply@sourceforge.net noreply@sourceforge.net
Tue, 12 Mar 2002 12:35:23 -0800


Bugs item #529050, was opened at 2002-03-12 10:12
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=529050&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 6
Submitted By: Neil Schemenauer (nascheme)
Assigned to: Nobody/Anonymous (nobody)
Summary: ModuleType.__new__ crash

Initial Comment:
Submitted on behalf of Gustavo Cordova
<gcordova@hebmex.com>:

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 = 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.


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-03-12 12:35

Message:
Logged In: NO 

I've got a fix. Will check in soon. --Guido


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=529050&group_id=5470