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 vstinner
Recipients alexandre.vassalotti, pitrou, serhiy.storchaka, vstinner
Date 2015-09-29.09:37:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
"Pickling of objects of classes whose __new__ mandates the use of keyword-only arguments is supported with protocol 4 (using a new opcode NEWOBJ_EX)."

Hum, can you please write a short example of such class which can only be pickled by the protocol 4 currently? Just for my information.

I understand that some objects cannot be serialized by pickle with protocol lower than 4, whereas your change makes possible to serialize them on Python 3, and it will be possible to deserialize them on Python 2 and Python 3.

If I understood correctly, the change makes sense.

I reviewed the patch, it looks good to me.
Date User Action Args
2015-09-29 09:37:52vstinnersetrecipients: + vstinner, pitrou, alexandre.vassalotti, serhiy.storchaka
2015-09-29 09:37:52vstinnersetmessageid: <>
2015-09-29 09:37:52vstinnerlinkissue24164 messages
2015-09-29 09:37:51vstinnercreate