Skip to content

Replace "ordered arguments" with "positional arguments" in unittest.mock documentation #137552

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

Merged
merged 2 commits into from
Aug 8, 2025

Conversation

orf
Copy link
Contributor

@orf orf commented Aug 8, 2025

This is a trivial change, replacing "ordered arguments" with "non-keyword arguments" inside the unittest.mock documentation.

Rationale

The confusing and unique terminology was pointed out to me whilst helping a new developer get started with mocks. They are quite familiar with python functions and arguments, but they where very confused by the phrase "ordered arguments". As far as I can tell, this is the only place that refers to non-keyword arguments as "ordered arguments" - arguments are ordered by virtue of them being arguments.

I'm happy to fiddle with the wording some more, but I figured simply changing it to "non-keyword" arguments makes things a bit clearer for newer developers?


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

@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Aug 8, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Aug 8, 2025
@ZeroIntensity ZeroIntensity added skip issue needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Aug 8, 2025
@orf orf changed the title Replace "ordered arguments" with "non-keyword arguments" in unittest.mock documentation Replace "ordered arguments" with "positional arguments" in unittest.mock documentation Aug 8, 2025
@ZeroIntensity ZeroIntensity enabled auto-merge (squash) August 8, 2025 13:59
@ZeroIntensity ZeroIntensity merged commit 64ee1ba into python:main Aug 8, 2025
30 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Aug 8, 2025
@miss-islington-app
Copy link

Thanks @orf for the PR, and @ZeroIntensity 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 Aug 8, 2025
…mock` documentation (pythonGH-137552)

(cherry picked from commit 64ee1ba)

Co-authored-by: Tom Forbes <tom@tomforb.es>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 8, 2025
…mock` documentation (pythonGH-137552)

(cherry picked from commit 64ee1ba)

Co-authored-by: Tom Forbes <tom@tomforb.es>
@bedevere-app
Copy link

bedevere-app bot commented Aug 8, 2025

GH-137553 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 Aug 8, 2025
@bedevere-app
Copy link

bedevere-app bot commented Aug 8, 2025

GH-137554 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 Aug 8, 2025
@ZeroIntensity
Copy link
Member

Thanks @orf. It might be a little while until the 3.14 backport is merged, since the branch is currently locked.

@orf orf deleted the patch-2 branch August 8, 2025 14:03
ZeroIntensity pushed a commit that referenced this pull request Aug 8, 2025
…ittest.mock` documentation (GH-137552) (GH-137554)

Replace "ordered arguments" with "positional arguments" in `unittest.mock` documentation (GH-137552)
(cherry picked from commit 64ee1ba)

Co-authored-by: Tom Forbes <tom@tomforb.es>
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.

2 participants