This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1405491040.44.0.173698958965.issue21986@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1405491040.44.0.173698958965.issue21986@psf.upfronthosting.co.za>
2014-07-16 06:10:40Claudiu.Popalinkissue21986 messages
2014-07-16 06:10:40Claudiu.Popacreate