[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:
Emmanuel Arias 2021-09-17 19:58:20 -03:00 committed by GitHub
parent 090591636c
commit 24dbe30f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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`