[issue36197] Compilation Warning for memoryview.tobytes and _collections._tuplegetter.__reduce__

Serhiy Storchaka report at bugs.python.org
Tue Mar 5 10:45:46 EST 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

This is only for methods with METH_NOARGS. The code that calls such method, calls it with two arguments, passing NULL as the second argument. So the signature of the C function should have two parameters. Functions for methods with METH_KEYWORDS or METH_FASTCALL should have different corresponding signatures.

----------

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


More information about the Python-bugs-list mailing list