[Stackless] Cell pickling bug
tismer at stackless.com
Sat Nov 17 03:34:47 CET 2007
Richard Tew wrote:
> On Nov 10, 2007 2:24 PM, Christian Tismer <tismer at stackless.com> wrote:
>> There is something else wrong with pickling of cells.
>> I will try to dig this up before a release.
>> This bugged me on EuroPython, but I forgot it.
> There is a cell which has a reference to the "sub" function and the
> "sub" function has a reference to the cell in its closures. The cell
> gets created before the function, but does not get built (have
> __setstate__ called on it) until after the function does. And the
> function won't recognise the cell until Stackless has fixed its type
> when it is built.
> I removed the call to PyCell_Check in funcobject.c:func_new() in order
> to see whether that would be enough, but this just results in an
> uncaught pickling error later on.
> I don't see an easy fix :-(
There must be one since it worked, once.
Will look into this after closing a number
of other tasks...
ciao -- chris
Christian Tismer :^) <mailto:tismer at stackless.com>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
More information about the Stackless