diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-09-17 23:23:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 23:23:38 (GMT) |
commit | eb9833d2658971cdfe9d4df11cc8f445abdf80ad (patch) | |
tree | 117db6d0851e84de0af53c4bdfa71c41c2bb0ab9 /Doc/library | |
parent | 6302701179c458da637d669d7e88734fabb79cf6 (diff) | |
download | cpython-eb9833d2658971cdfe9d4df11cc8f445abdf80ad.zip cpython-eb9833d2658971cdfe9d4df11cc8f445abdf80ad.tar.gz cpython-eb9833d2658971cdfe9d4df11cc8f445abdf80ad.tar.bz2 |
[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) (GH-28434)
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>
Diffstat (limited to 'Doc/library')
-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 952a5b4..1fb6199 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` |