diff options
author | Emmanuel Arias <eamanu@yaerobi.com> | 2021-09-17 22:58:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 22:58:20 (GMT) |
commit | 24dbe30f8df80740704db3743d071b3218d1276e (patch) | |
tree | 18ed2f57a3b4f1b4c43e1720323f0a9268f778d3 /Doc | |
parent | 090591636c4f03ce06a039079bd7716a5b23631e (diff) | |
download | cpython-24dbe30f8df80740704db3743d071b3218d1276e.zip cpython-24dbe30f8df80740704db3743d071b3218d1276e.tar.gz cpython-24dbe30f8df80740704db3743d071b3218d1276e.tar.bz2 |
[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>
Diffstat (limited to 'Doc')
-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 c9b2a37..41cd40a 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` |