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 Markus Mohrhard
Recipients Markus Mohrhard
Date 2019-07-05.03:33:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562297595.0.0.947701314803.issue37502@roundup.psfhosted.org>
In-reply-to
Content
The following piece of code

import pickle
pickle.loads(pickle.dumps(1, protocol=pickle.HIGHEST_PROTOCOL), buffers=None)

fails with "TypeError: 'NoneType' object is not iterable"

The corresponding PEP (https://www.python.org/dev/peps/pep-0574/) specifies that buffer=None is the default but the C implementation does not check for Py_None.

The PR contains a test for this case that fails without the fix.
History
Date User Action Args
2019-07-05 03:33:15Markus Mohrhardsetrecipients: + Markus Mohrhard
2019-07-05 03:33:14Markus Mohrhardsetmessageid: <1562297595.0.0.947701314803.issue37502@roundup.psfhosted.org>
2019-07-05 03:33:14Markus Mohrhardlinkissue37502 messages
2019-07-05 03:33:14Markus Mohrhardcreate