Skip to content

Commit 24dbe30

Browse files
[doc] Clarify exception in multiprocessing.cpu_count (GH-23660)
Previous wording didn't explain the slightly unintuitive behavior. Co-authored-by: kj <[email protected]>
1 parent 0905916 commit 24dbe30

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)