[issue33817] PyString_FromFormatV() fails to build empty strings

Tey report at bugs.python.org
Sun Jun 10 13:43:47 EDT 2018


Tey <teyut at free.fr> added the comment:

For the record, it does not fail on 3.x because _PyBytes_Resize() checks if the "string" needs to be resized (and returns if not) before checking its ref count. Maybe something similar should be done in _PyString_Resize() for 2.x.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33817>
_______________________________________


More information about the Python-bugs-list mailing list