[PyPy-issue] [issue539] stackless - Execution frames in a module inside a package are not pickled correctly.

Gabriel Lavoie pypy-dev-issue at codespeak.net
Tue May 18 17:31:50 CEST 2010


New submission from Gabriel Lavoie <glavoie at mutehq.net>:

When a Stackles tasklet is pickled when the execution state is in a function of
a module inside a package, the wrong namespace is saved for the frame. The
namespace of the package is saved instead of the namespace of the module. After
unpickling, if the function needs global variables of the module, the variable
won't be accessible anymore.

Here's a test to show the problem.

----------
effort: ???
files: pypy-stackless-pickle-bug.patch
messages: 1743
nosy: pypy-issue, wildchild
priority: bug
release: ???
status: unread
title: stackless - Execution frames in a module inside a package are not pickled correctly.

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue539>
_______________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pypy-stackless-pickle-bug.patch
Type: application/octet-stream
Size: 1914 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-issue/attachments/20100518/4d0cf6f6/attachment.obj>


More information about the Pypy-issue mailing list