diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-09-17 16:19:00 -0700 |
---|---|---|
committer | Pablo Galindo <pablogsal@gmail.com> | 2021-09-29 12:35:06 +0100 |
commit | b2a8a30b0d81640c212a4325d59868a75f2ea837 (patch) | |
tree | d9a64b6d7f63699dcb558586633f6d3fc648b123 | |
parent | 84d56ec4bc0cb44629ba898a30eece48546828d2 (diff) | |
download | cpython-git-b2a8a30b0d81640c212a4325d59868a75f2ea837.tar.gz |
[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) (GH-28433)
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>
-rw-r--r-- | Doc/library/multiprocessing.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 00075915b2..7225b65dcb 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` |