Document how to use varargs in Argument Clinic#1277
Closed
aisk wants to merge 7 commits intopython:mainfrom
aisk:ac-varargs
Closed
Document how to use varargs in Argument Clinic#1277aisk wants to merge 7 commits intopython:mainfrom aisk:ac-varargs
aisk wants to merge 7 commits intopython:mainfrom
aisk:ac-varargs
Conversation
Contributor
Author
|
Thanks for the review!
Is it ok to move it below How to convert METH_O and METH_NOARGS functions?
According to python/cpython#64490, |
Collaborator
|
@ezio-melotti You have more experience with this tool than I do. Is this PR ready for merge? |
Member
|
LGTM. @erlend-aasland? |
|
|
||
| To convert a var-positional parameter function, | ||
| prepending the parameter name with ``*`` , | ||
| and the parameter should use the ``object`` converter:: |
Member
There was a problem hiding this comment.
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?
Contributor
Author
There was a problem hiding this comment.
Thank you for the review! I have added a new paragraph to explain more about it.
picnixz
reviewed
Oct 13, 2024
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
willingc
approved these changes
Oct 15, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is related to python/cpython#64490
📚 Documentation preview 📚: https://cpython-devguide--1277.org.readthedocs.build/