mirror of
https://github.com/python/cpython.git
synced 2026-04-05 03:21:05 +00:00
[doc] Clarify exception in multiprocessing.cpu_count (GH-23660) (GH-28433)
Previous wording didn't explain the slightly unintuitive behavior.
Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 24dbe30f8d)
Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
This commit is contained in:
parent
8a5f14e5ba
commit
397dad4001
1 changed files with 2 additions and 1 deletions
|
|
@ -951,7 +951,8 @@ Miscellaneous
|
|||
use. The number of usable CPUs can be obtained with
|
||||
``len(os.sched_getaffinity(0))``
|
||||
|
||||
May raise :exc:`NotImplementedError`.
|
||||
When the number of CPUs cannot be determined a :exc:`NotImplementedError`
|
||||
is raised.
|
||||
|
||||
.. seealso::
|
||||
:func:`os.cpu_count`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue