[Stackless] pickling code objects

Richard Tew richard.m.tew at gmail.com
Thu May 24 20:58:59 CEST 2007


On 5/24/07, Kristján Valur Jónsson <kristjan at ccpgames.com> wrote:
> After upgrading eve to stackless 2.5.1 (or rather, as a part of this
> integration) I discovered that code objects are not pickleable.

Python 2.5.1 Stackless 3.1b3 060516 (release25-maint:55039:55048, May
1 2007, 14:13:4) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> def f():
...     print 1
...
>>> import pickle
>>> pickle.dumps(f.func_code)
"cstackless._wrap\ncode\np0\n(I0\nI0\nI1\nI67\nS'd\\x01\\x00GHd\\x00\\x00S'\np1\n(NI1\ntp2\n(t(tS'<stdin>'\np3\nS'f'\np4\nI1\nS'\\x00\\x01'\np5\n(t(ttp6\nRp7\n(
tb."
>>>

Is there a reproducibility case for the problem you are experiencing?

Cheers,
Richard.

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list