New submission from Zackery Spytz <zsp...@gmail.com>:

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.

----------
messages: 325444
nosy: ZackerySpytz
priority: normal
severity: normal
status: open
title: PyByteArray_FromObject() has undocumented (and untested) behavior
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34696>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to