Claudiu Popa added the comment:
It works in IDLE because it registers a custom pickling for code objects, in
idlelib.rpc:
copyreg.pickle(types.CodeType, pickle_code, unpickle_code)
where pickle_code / unpickle_code calls marshal.dumps/loads.
Although, I admit that this is weird. If idlelib
Serhiy Storchaka added the comment:
Thank you Zach. I found even small regression.
Before:
$ ./python -m timeit -s "x = 10" "x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x; x+x;
x+x"
100 loops, best of 3: 1.51 usec per loop
After:
$ ./python -m timeit -s "x = 10" "x+x; x+x; x+x; x+x; x+x; x+x;
101 - 102 of 102 matches
Mail list logo