Uh oh!
There was an error while loading. Please reload this page.
Document how to use varargs in Argument Clinic - #1277
Conversation
aisk
commented
Feb 25, 2024
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, |
willingc
commented
Oct 12, 2024
@ezio-melotti You have more experience with this tool than I do. Is this PR ready for merge? |
ezio-melotti
commented
Oct 12, 2024
LGTM. @erlend-aasland? |
| To convert a var-positional parameter function, | ||
| prepending the parameter name with ``*`` , | ||
| and the parameter should use the ``object`` converter:: |
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?
There was a problem hiding this comment.
Thank you for the review! I have added a new paragraph to explain more about it.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This is related to python/cpython#64490
📚 Documentation preview 📚: https://cpython-devguide--1277.org.readthedocs.build/