Skip to content

PEP 590: allow passing a dict to PyObject_Vectorcall #1038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pep-0590.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ The following functions or macros are added to the C API:
Calls ``obj`` with the given arguments.
Note that ``nargs`` may include the flag ``PY_VECTORCALL_ARGUMENTS_OFFSET``.
The actual number of positional arguments is given by ``PyVectorcall_NARGS(nargs)``.
The argument ``keywords`` is a tuple of keyword names or ``NULL``.
An empty tuple has the same effect as passing ``NULL``.
The argument ``keywords`` is either a dict, a tuple of keyword names or ``NULL``.
An empty dict or empty tuple has the same effect as passing ``NULL``.
This uses either the vectorcall protocol or ``tp_call`` internally;
if neither is supported, an exception is raised.

Expand Down