8000 Document how to use varargs in Argument Clinic by aisk · Pull Request #1277 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

Document how to use varargs in Argument Clinic #1277

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 7 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add description about what the implementaion functions will receive
  • Loading branch information
aisk committed Oct 13, 2024
commit b2f1914506250494a5e953a65c313a91954771ad
4 changes: 4 additions & 0 deletions development-tools/clinic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,10 @@ and the parameter should use the ``object`` converter::
*args: object
[clinic start generated code]*/

The implementation function will receive var-positional arguments
as a tuple, you can either use the tuple directly
or parsing them into C types using :c:func:`!PyArg_Parse*` functions.

.. versionadded:: 3.11


Expand Down
Loading
0