You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use Argument Clinic for more functions and methods #155496
Many functions and methods implemented in C still parse their arguments with PyArg_ParseTuple() or PyArg_UnpackTuple().
They have no signature for introspection and use the slow METH_VARARGS calling convention.
There are 131 such PyMethodDef entries outside the test modules: _curses 25, _ctypes 16, _interpchannels 13 (GH-139141), time 11, _io 9, _tkinter 8, _thread 6, _csv 5, socket 3, sys 3, and 32 more in 27 files.
A few of them cannot be converted: the behaviour of socket.sendto(), socket.setsockopt() and socket.ioctl() depends on the number or the value of the arguments, and Argument Clinic rejects module-level __getattr__() as a special method.
Activity
gh-155496: Use Argument Clinic for more functions in the time module (G…
gh-155496: Use Argument Clinic for more functions of the _io module (G…
gh-155496: Use Argument Clinic for more functions of the _ctypes modu…
gh-155496: Use Argument Clinic for more functions of the _thread modu…
pythongh-155496: Use the Py_UNICODE converter in the getpath module
pythongh-155496: Use the bool return converter in the getpath module
gh-155496: Use Argument Clinic for the getpath module (GH-158132)
gh-155496: Use Argument Clinic for more functions of the _csv module (G…
gh-155496: Use Argument Clinic for more functions and methods (GH-158134