]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660)
authorEmmanuel Arias <eamanu@yaerobi.com>
Fri, 17 Sep 2021 22:58:20 +0000 (19:58 -0300)
committerGitHub <noreply@github.com>
Fri, 17 Sep 2021 22:58:20 +0000 (00:58 +0200)
Previous wording didn't explain the slightly unintuitive behavior.

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
Doc/library/multiprocessing.rst

index c9b2a3716ff327b60b4edceff454e397b5b8543a..41cd40ae8ae2d3658a39abbd764934e8e2998013 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`