[issue30459] PyList_SET_ITEM could be safer

Petr Viktorin report at bugs.python.org
Thu Dec 10 09:12:11 EST 2020


Petr Viktorin <encukou at gmail.com> added the comment:

> The change respects the documentation which always documented the result type as "void".

Then, IMO, the documentation should be fixed.

> My expectation is that apart py-qt4, no project abuse these 3 macros.

That's not true; at least ALSA's python bindings use PyTuple_SET_ITEM as a lvalue as well.

----------

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


More information about the Python-bugs-list mailing list