[issue26759] PyBytes_FromObject accepts arbitrary iterable
Serhiy Storchaka
report at bugs.python.org
Thu Apr 14 14:45:51 EDT 2016
Serhiy Storchaka added the comment:
Other *_FromObject public API functions:
PyUnicode_FromObject() -- Very strict. Accepts only str subclasses.
PyByteArray_FromObject() -- Very lenient! Calls the bytearray() constructor, accepts even an integer!
PyMemoryView_FromObject() -- No surprises. Accepts only objects that support the buffer protocol.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26759>
_______________________________________
More information about the Python-bugs-list
mailing list