[issue21986] Pickleability of code objects is inconsistent

2014-07-15 Thread Claudiu Popa
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

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-15 Thread Serhiy Storchaka
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;

<    1   2