[issue8949] PyArg_Parse*(): "z" should not accept bytes

Marc-Andre Lemburg report at bugs.python.org
Mon Jun 21 21:57:39 CEST 2010


Marc-Andre Lemburg <mal at egenix.com> added the comment:

STINNER Victor wrote:
> 
> STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> 
> @lemburg: So what is your opinion on this issue?

You're probably right: it's too late to change "s" to accept buffer
interface compatible objects as well.

In that case, symmetry is more important, so +1 on rejecting bytes
for "z" as well.

Please add a note to the NEWS file for this change.

----------

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


More information about the Python-bugs-list mailing list