]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) (GH-28434)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 Sep 2021 23:23:38 +0000 (16:23 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Sep 2021 23:23:38 +0000 (01:23 +0200)
Previous wording didn't explain the slightly unintuitive behavior.

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 24dbe30f8df80740704db3743d071b3218d1276e)

Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
Doc/library/multiprocessing.rst

index 952a5b40a0d1fd3dc062ac03f1ef279a7e5ce23b..1fb6199d0d05b892cc51895000fc91b05312e24a 100644 (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`