Message223176
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.rpc is using this for transferring data between RPC instances, that's okay, but leaking the behaviour in the IDLE's interactive interpreter is not that okay, because leads to different results and expectancies between IDLE and Python's interactive interpreter. |
|
Date |
User |
Action |
Args |
2014-07-16 06:10:40 | Claudiu.Popa | set | recipients:
+ Claudiu.Popa, terry.reedy, kbk, pitrou, roger.serwy, ppperry |
2014-07-16 06:10:40 | Claudiu.Popa | set | messageid: <1405491040.44.0.173698958965.issue21986@psf.upfronthosting.co.za> |
2014-07-16 06:10:40 | Claudiu.Popa | link | issue21986 messages |
2014-07-16 06:10:40 | Claudiu.Popa | create | |
|