]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109649: Enhance os.cpu_count() documentation (#110169)
authorVictor Stinner <vstinner@python.org>
Mon, 2 Oct 2023 15:47:57 +0000 (17:47 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 15:47:57 +0000 (17:47 +0200)
commit5245b97e132ae071e2b574224e0788cab62fdcc9
tree69593a02dda9840e8bbc8d706a2f1a51722cee4d
parentce332aa8c5c2d3a086cabb3f21d2da3a96e78680
[3.12] gh-109649: Enhance os.cpu_count() documentation (#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
Doc/library/os.rst
Lib/test/test_posix.py