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.

classification
Title: PyByteArray_FromObject() has undocumented (and untested) behavior
Type: behavior Stage: patch review
Components: Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: ZackerySpytz, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2018-09-15 16:24 by ZackerySpytz, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 9332 open ZackerySpytz, 2018-09-15 16:29
Messages (2)
msg325444 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2018-09-15 16:24
The documentation states that PyByteArray_FromObject() creates a bytearray object from an object that implements the buffer protocol, but PyByteArray_FromObject() simply calls the bytearray constructor with its argument (the buffer protocol part is not enforced).

This was mentioned in #26759. Either the documentation or the behavior should be changed.
msg327562 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-10-12 06:15
See also issue26759.
History
Date User Action Args
2022-04-11 14:59:05adminsetgithub: 78877
2018-10-12 06:15:19serhiy.storchakasetassignee: serhiy.storchaka

messages: + msg327562
nosy: + serhiy.storchaka
2018-09-15 16:29:59ZackerySpytzsetkeywords: + patch
stage: patch review
pull_requests: + pull_request8755
2018-09-15 16:24:14ZackerySpytzcreate