]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] [3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169) (#110226)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Oct 2023 01:36:55 +0000 (18:36 -0700)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2023 01:36:55 +0000 (18:36 -0700)
commitbf6843e91f70a9956acb8a1cdd0564d3598b9a6e
treeef5f1445b1a3b7744fe0f211c0a3effd47731fe3
parent981696e342f41dc3f8c2ea94a79475c931d2c7cf
[3.11] [3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169) (#110226)

[3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169)

* gh-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 5245b97e132ae071e2b574224e0788cab62fdcc9)

Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/library/os.rst
Lib/test/test_posix.py