Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
aisk wants to merge6 commits intopython:main
base:main
Choose a base branch
Loading
fromaisk:ac-varargs

Conversation

aisk
Copy link

@aiskaisk commentedFeb 23, 2024
edited by github-actionsbot
Loading

This is related topython/cpython#64490


📚 Documentation preview 📚:https://cpython-devguide--1277.org.readthedocs.build/

Copy link
Member

@ezio-melottiezio-melotti left a comment
edited
Loading

Choose a reason for hiding this comment

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

This might be higher up in the list.
Should**kwargs be documented too, possibly together with*args?

@aisk
Copy link
Author

Thanks for the review!

This might be higher up in the list.

Is it ok to move it belowHow to convert METH_O and METH_NOARGS functions?

Should**kwargs be documented too, possibly together with*args?

According topython/cpython#64490,**kwargs is not supported by Argument Clinic.

@aiskaisk requested a review fromezio-melottiApril 21, 2024 15:47
@willingc
Copy link
Collaborator

@ezio-melotti You have more experience with this tool than I do. Is this PR ready for merge?

@ezio-melotti
Copy link
Member

LGTM.@erlend-aasland?


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

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
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.

willingc reacted with thumbs up emoji
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JelleZijlstraJelleZijlstraJelleZijlstra left review comments

@picnixzpicnixzpicnixz left review comments

@willingcwillingcwillingc approved these changes

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aasland

@ezio-melottiezio-melottiAwaiting requested review from ezio-melotti

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@aisk@willingc@ezio-melotti@JelleZijlstra@picnixz

[8]ページ先頭

©2009-2025 Movatter.jp