[Python-bugs-list] [ python-Bugs-478421 ] cPickle bug when using imp.load_source()
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 05 Nov 2001 12:12:53 -0800
Bugs item #478421, was opened at 2001-11-05 12:12
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478421&group_id=5470
Category: Python Library
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew R Gross (sincere2001)
Assigned to: Nobody/Anonymous (nobody)
Summary: cPickle bug when using imp.load_source()
Initial Comment:
When a Python 2.1.1 program dynamically creates a
module using
the 'imp.load_source()' function, and the created
module tries to
'import cPickle', the interpreter dies with a
SystemError exception:
SystemError: _PyImport_FixupExtension: module
import_cPickle.cPickle not loaded
This does *not* occur when the find/load_module()
functions are used.
The bug also appears to have been introduced somewhere
in 2.x,
as 1.5.x works fine with load_source().
Attached is a full explanation of the behavior and some
small
sample programs to illustrate the bug.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478421&group_id=5470