From: Emmanuel Arias Date: Fri, 17 Sep 2021 22:58:20 +0000 (-0300) Subject: [doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) X-Git-Tag: v3.11.0a1~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24dbe30f8df80740704db3743d071b3218d1276e;p=thirdparty%2FPython%2Fcpython.git [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> --- diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index c9b2a3716ff3..41cd40ae8ae2 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 ``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`