[issue45325] Allow "p" in Py_BuildValue

Pablo Galindo Salgado report at bugs.python.org
Wed Sep 29 16:25:22 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

> There was no much need of this feature. In rare cases when we needed to build a bool in Py_BuildValue (I have found only 2 cases in the stdlib, and one of them is added by me) we use the following idiom:

Is true that this is not very common, but I have find this in several occasions writing extension code and given the small impact and maintenance cost and the symmetry with PyArg_Parse I figured that could be useful

----------

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


More information about the Python-bugs-list mailing list