Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue37502

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Fix default argument handling for buffers argument in pickle.loads
Type:Stage:resolved
Components:Library (Lib)Versions:Python 3.9, Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: Markus Mohrhard, aeros, miss-islington, pitrou, xtreak
Priority:normalKeywords:patch

Created on2019-07-05 03:33 byMarkus Mohrhard, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 14593mergedMarkus Mohrhard,2019-07-05 03:36
PR 14948mergedmiss-islington,2019-07-25 16:00
Messages (6)
msg347299 -(view)Author: Markus Mohrhard (Markus Mohrhard)*Date: 2019-07-05 03:33
The following piece of codeimport picklepickle.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.
msg347303 -(view)Author: Karthikeyan Singaravelan (xtreak)*(Python committer)Date: 2019-07-05 04:05
See alsoissue37210
msg347306 -(view)Author: Markus Mohrhard (Markus Mohrhard)*Date: 2019-07-05 04:24
Sorr, I somehow managed to overwrite my title before submitting with the one from one if the results of my searches.
msg347484 -(view)Author: Kyle Stanley (aeros)*(Python committer)Date: 2019-07-08 03:45
Thanks for reporting the issue. OnPR-14593 I reviewed the changes with interpreter screenshots showing the output of "pickle.loads(pickle.dumps(1, protocol=pickle.HIGHEST_PROTOCOL), buffers=None)" in the latest version of cpython master compared to the branch from the PR.
msg348440 -(view)Author: Antoine Pitrou (pitrou)*(Python committer)Date: 2019-07-25 16:00
New changeset898318b53d921298d1f1fcfa0f415844afbeb318 by Antoine Pitrou (Markus Mohrhard) in branch 'master':bpo-37502: handle default parameter for buffers argument of pickle.loads correctly (GH-14593)https://github.com/python/cpython/commit/898318b53d921298d1f1fcfa0f415844afbeb318
msg348442 -(view)Author: miss-islington (miss-islington)Date: 2019-07-25 16:18
New changeset25cb4fd4fb0f44d2b6bf38379634f3d22b77aa17 by Miss Islington (bot) in branch '3.8':bpo-37502: handle default parameter for buffers argument of pickle.loads correctly (GH-14593)https://github.com/python/cpython/commit/25cb4fd4fb0f44d2b6bf38379634f3d22b77aa17
History
DateUserActionArgs
2022-04-11 14:59:17adminsetgithub: 81683
2019-07-25 16:20:52pitrousetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-07-25 16:18:23miss-islingtonsetnosy: +miss-islington
messages: +msg348442
2019-07-25 16:00:48miss-islingtonsetpull_requests: +pull_request14718
2019-07-25 16:00:38pitrousetmessages: +msg348440
2019-07-08 03:45:11aerossetnosy: +aeros
messages: +msg347484
2019-07-05 04:24:54Markus Mohrhardsetmessages: +msg347306
2019-07-05 04:23:50Markus Mohrhardsettitle: Pure Python pickle module should not depend on _pickle.PickleBuffer -> Fix default argument handling for buffers argument in pickle.loads
2019-07-05 04:05:19xtreaksetnosy: +xtreak,pitrou
messages: +msg347303
2019-07-05 03:36:19Markus Mohrhardsetkeywords: +patch
stage: patch review
pull_requests: +pull_request14409
2019-07-05 03:33:14Markus Mohrhardcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp