Issue658693
Created on 2002-12-26 15:23 by gvanrossum, last changed 2009-04-07 20:31 by georg.brandl.
|
msg60298 - (view) |
Author: Guido van Rossum (gvanrossum) |
Date: 2002-12-26 15:23 |
|
save_global() in cPickle calls PyImport_ImportModule()
to import the module of a global that's about to be
pickled, in order to check whether the given name in
fact refers to the given object.
But when it is invoked from code living inside a
package, PyImport_ImportModule() first tries a relative
import, and if by sheer accident that relative import
succeeds, it performs the wrong test.
Example: in a package that has a submodule
"exceptions", pickling instances of built-in exceptions
will attempt to look up the exception class name in the
exceptions submodule rather than in the built-in
toplevel module by that name.
|
|
msg71507 - (view) |
Author: Benjamin Peterson (benjamin.peterson) |
Date: 2008-08-20 02:50 |
|
Is this still an issue?
|
|
msg85745 - (view) |
Author: Georg Brandl (georg.brandl) |
Date: 2009-04-07 20:31 |
|
Probably, but I guess nobody is really interested in fixing it since
it's not in 3.x.
|
|
| Date |
User |
Action |
Args |
| 2009-04-07 20:31:52 | georg.brandl | set | status: open -> pending
nosy:
+ georg.brandl messages:
+ msg85745
resolution: wont fix |
| 2008-08-20 02:50:48 | benjamin.peterson | set | nosy:
+ benjamin.peterson messages:
+ msg71507 |
| 2002-12-26 15:23:39 | gvanrossum | create | |
|