Skip to content

Conversation

@akx
Copy link
Contributor

@akx akx commented Jan 15, 2026

While working on asyncio-related things, my eyes somehow skipped over the "keyword arguments" part of the sentence about functools.partial, and args wasn't at all documented for add_signal_handler.

Hence, this PR gently clarifies the documentation for *args in asyncio loop callbacks and unifies all of the places referring to functools.partial to have similar verbiage.

I think this is a trivial enough documentation improvement that it doesn't require an issue, but let me know if not so.


📚 Documentation preview 📚: https://cpython-previews--143873.org.readthedocs.build/


Arrange for *func* to be called in the specified executor.
Arrange for *func* to be called in the specified executor
with *args* being passed as positional arguments.
Copy link
Member

@picnixz picnixz Jan 19, 2026

Choose a reason for hiding this comment

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

Can we use the same formulation as elsewhere (that is use either "passing...." or "with args ...")

@StanFromIreland
Copy link
Member

Updating branch to fix the CI.

Copy link
Contributor

@kumaraditya303 kumaraditya303 left a comment

Choose a reason for hiding this comment

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

awaiting changes for Bénédikt's review

@bedevere-app
Copy link

bedevere-app bot commented Feb 6, 2026

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@kumaraditya303 kumaraditya303 added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Feb 10, 2026
@kumaraditya303 kumaraditya303 enabled auto-merge (squash) February 10, 2026 13:05
@kumaraditya303 kumaraditya303 merged commit 40a82ab into python:main Feb 10, 2026
35 of 37 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Feb 10, 2026
@miss-islington-app
Copy link

Thanks @akx for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 10, 2026
(cherry picked from commit 40a82abe9335e78e34ca564243499490e50b8888)

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 10, 2026
(cherry picked from commit 40a82ab)

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Feb 10, 2026

GH-144663 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Feb 10, 2026
@bedevere-app
Copy link

bedevere-app bot commented Feb 10, 2026

GH-144664 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Feb 10, 2026
kumaraditya303 added a commit that referenced this pull request Feb 10, 2026
…144664)

Clarify the docs for `args` in asyncio callbacks (GH-143873)
(cherry picked from commit 40a82ab)

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
kumaraditya303 added a commit that referenced this pull request Feb 10, 2026
…144663)

Clarify the docs for `args` in asyncio callbacks (GH-143873)
(cherry picked from commit 40a82ab)

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants