mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
initial patch by Trent Nelson.
This commit is contained in:
parent
93c6770c72
commit
44feda3cd0
6 changed files with 95 additions and 27 deletions
|
@ -702,6 +702,9 @@ Miscellaneous
|
|||
Return the number of CPUs in the system. May raise
|
||||
:exc:`NotImplementedError`.
|
||||
|
||||
.. seealso::
|
||||
:func:`os.cpu_count`
|
||||
|
||||
.. function:: current_process()
|
||||
|
||||
Return the :class:`Process` object corresponding to the current process.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue