[issue36937] New _PyObject_MakeTpCall() function
Jeroen Demeyer
report at bugs.python.org
Thu May 16 05:59:07 EDT 2019
New submission from Jeroen Demeyer <J.Demeyer at UGent.be>:
Add a new private function
PyObject *_PyObject_MakeTpCall(PyObject *callable, PyObject *const *args, Py_ssize_t nargs, PyObject *keywords)
to call "callable" using tp_call, but with arguments given using the FastCallKeywords or FastCallDict convention (both are allowed, see also https://github.com/python/peps/pull/1038).
The code is not new, it's essentially moving the tp_call case out of _PyObject_FastCallKeywords() and _PyObject_FastCallDict().
This was first proposed (as public API under the name PyCall_MakeTpCall) for PEP 590 but it makes sense to do this independently.
----------
components: Interpreter Core
messages: 342632
nosy: Mark.Shannon, jdemeyer, petr.viktorin, vstinner
priority: normal
severity: normal
status: open
title: New _PyObject_MakeTpCall() function
type: enhancement
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36937>
_______________________________________
More information about the Python-bugs-list
mailing list