[Python-checkins] [doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660)

ambv webhook-mailer at python.org
Fri Sep 17 18:58:25 EDT 2021

commit: 24dbe30f8df80740704db3743d071b3218d1276e
branch: main
author: Emmanuel Arias <eamanu at yaerobi.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-18T00:58:20+02: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 at users.noreply.github.com>

M Doc/library/multiprocessing.rst

diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index c9b2a3716ff32..41cd40ae8ae2d 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -951,7 +951,8 @@ Miscellaneous
    use.  The number of usable CPUs can be obtained with
-   May raise :exc:`NotImplementedError`.
+   When the number of CPUs cannot be determined a :exc:`NotImplementedError`
+   is raised.
    .. seealso::

More information about the Python-checkins mailing list