mirror of
https://github.com/python/cpython.git
synced 2024-12-12 03:04:15 +08:00
[doc] Clarify exception in multiprocessing.cpu_count
(GH-23660)
Previous wording didn't explain the slightly unintuitive behavior. Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
This commit is contained in:
parent
090591636c
commit
24dbe30f8d
@ -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…
Reference in New Issue
Block a user