[issue24009] Get rid of rare format units in PyArg_Parse*

Martin Panter report at bugs.python.org
Tue May 26 08:04:29 CEST 2015


Martin Panter added the comment:

“u#” should not be deprecated without first deprecating “u”, which is less useful due to not returning a buffer length.

Also, I have always been mystified about how “s#”, “z#”, “y” and “y#” can properly to return a pointer into a buffer for arbitrary immutable bytes-like objects, without requiring PyBuffer_Release() to be called. Perhaps this is bad design to be discouraged. Or maybe a documentation oversight somewhere.

----------
nosy: +vadmium

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24009>
_______________________________________


More information about the Python-bugs-list mailing list