Skip to content

Commit b2a8a30

Browse files
miss-islingtoneamanu
authored andcommitted
[doc] Clarify exception in multiprocessing.cpu_count (GH-23660) (GH-28433)
Previous wording didn't explain the slightly unintuitive behavior. Co-authored-by: kj <[email protected]> (cherry picked from commit 24dbe30) Co-authored-by: Emmanuel Arias <[email protected]>
1 parent 84d56ec commit b2a8a30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/multiprocessing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,8 @@ Miscellaneous
951951
use. The number of usable CPUs can be obtained with
952952
``len(os.sched_getaffinity(0))``
953953

954-
May raise :exc:`NotImplementedError`.
954+
When the number of CPUs cannot be determined a :exc:`NotImplementedError`
955+
is raised.
955956

956957
.. seealso::
957958
:func:`os.cpu_count`

0 commit comments

Comments
 (0)