-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Fix override value in os.rst #123522
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
Fix override value in os.rst #123522
Conversation
| .. versionchanged:: 3.13 | ||
| If :option:`-X cpu_count <-X>` is given or :envvar:`PYTHON_CPU_COUNT` is set, | ||
| :func:`cpu_count` returns the overridden value *n*. | ||
| :func:`cpu_count` returns the override value *n*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The language is weird either way, may be 'overriding value'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there. Shouldn't it be like "return value" used in these docs? (English is not my native language, so I could be mixing different things)
|
You need to update the branch to fix the CI. |
92b10dd to
664ea44
Compare
|
Thanks, Stan. Updated against current main branch. @corona10 It seems Vitor requested your review. Can you please take a look? |
|
Thanks @rffontenelle for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
(cherry picked from commit f5e11facf2d3d89ea8c387376d5889b959c60d82) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
(cherry picked from commit f5e11fa) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
|
GH-143211 is a backport of this pull request to the 3.14 branch. |
|
GH-143212 is a backport of this pull request to the 3.13 branch. |
In the
python -X cpu_count=ncommand line, n value is not overridden by anything. It actually overrides the defaultos.cpu_count()'s return value. So the text should say "override value" instead of "overridden value".Please backport to 3.13
📚 Documentation preview 📚: https://cpython-previews--123522.org.readthedocs.build/