10000 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
remove the term markup
  • Loading branch information
aisk committed Feb 25, 2024
commit f2edea856fd0ed32a6e8add9c274fca5e4bb0866
2 changes: 1 addition & 1 deletion development-tools/clinic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ a *type* argument to the object converter for :c:macro:`METH_O`.
How to convert var-positional parameter functions
-------------------------------------------------

To convert a :term:`var-positional` parameter function,
To convert a var-positional parameter function,
prepending the parameter name with ``*`` ,
and the parameter should use the ``object`` converter::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if I use something else? E.g., what if I want to accept an arbitrary number of ints?

Also, what type does the implementation function receive?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review! I have added a new paragraph to explain more about it.


Expand Down
0