[3.11] [3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169) by miss-islington · Pull Request #110226 · python/cpython
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 34.2k
Merged
gpshead merged 1 commit intopython:3.11from
Oct 3, 2023Merged
[3.11] [3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169)#110226
gpshead merged 1 commit intopython:3.11from
[3.11] [3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169)#110226
gpshead merged 1 commit intopython:3.11from
Conversation
Copy link
Contributor
-
os.process_cpu_count(): get the number CPUs usable by the current process #109649: Enhance os.cpu_count() documentation
-
Doc: Specify that os.cpu_count() counts logicial CPUs.
-
Doc: Specify that os.sched_getaffinity(0) is related to the calling
thread. -
Fix test_posix.test_sched_getaffinity(): restore the old CPU mask
when the test completes! -
Restore removed text
(cherry picked from commit 5245b97)
Co-authored-by: Victor Stinner vstinner@python.org
📚 Documentation preview 📚: https://cpython-previews--110226.org.readthedocs.build/
…H-110169) * pythongh-109649: Enhance os.cpu_count() documentation * Doc: Specify that os.cpu_count() counts *logicial* CPUs. * Doc: Specify that os.sched_getaffinity(0) is related to the calling thread. * Fix test_posix.test_sched_getaffinity(): restore the old CPU mask when the test completes! * Restore removed text (cherry picked from commit 5245b97) Co-authored-by: Victor Stinner <vstinner@python.org>
This was referenced
Oct 2, 2023
bedevere-app
bot
added
the
skip news
label
gpshead approved these changes Oct 3, 2023
bedevere-app
bot
added
awaiting core review
and removed
awaiting review
labels
gpshead
merged commit
bf6843e
into
python:3.11
bedevere-app
bot
removed
the
awaiting core review
label
miss-islington
deleted the
backport-5245b97-3.11
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment