[issue43435] Py_BuildValue("y#".... returns incomplete result
Christian Heimes
report at bugs.python.org
Mon Mar 8 16:43:56 EST 2021
Christian Heimes <lists at cheimes.de> added the comment:
Py_BuildValue("y#", output, count) is equivalent to PyBytes_FromStringAndSize(output, count). The function returns a copy of the input string as a new bytes object. It's very unlikely that the code is broken. It's been around for ages and it's a core feature.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43435>
_______________________________________
More information about the Python-bugs-list
mailing list