Author Claudiu.Popa
Recipients Claudiu.Popa, kbk, pitrou, ppperry, roger.serwy, terry.reedy
Date 2014-07-16.06:10:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:40Claudiu.Popasetrecipients: + Claudiu.Popa, terry.reedy, kbk, pitrou, roger.serwy, ppperry
2014-07-16 06:10:40Claudiu.Popasetmessageid: <>
2014-07-16 06:10:40Claudiu.Popalinkissue21986 messages
2014-07-16 06:10:40Claudiu.Popacreate