Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address code review
  • Loading branch information
corona10 committed Oct 10, 2023
commit 0967c522ae93e8fceb995485613f4f6ad1b8ae5d
9 changes: 4 additions & 5 deletions Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,8 @@ Miscellaneous options
*n* must be greater than or equal to 1.
This option may be useful for users who need to limit CPU resources of a
container system. See also :envvar:`PYTHON_CPU_COUNT`.
If *n* is ``default``, nothing is overridden, if *n* is ``process``,
:func:`os.os.process_cpu_count` becomes an alias of :func:`os.cpu_count`
and :func:`multiprocessing.cpu_count`.
If *n* is ``default``, nothing is overridden. If *n* is ``process``,
:func:`os.cpu_count` becomes an alias of :func:`os.process_cpu_count`

It also allows passing arbitrary values and retrieving them through the
:data:`sys._xoptions` dictionary.
Expand Down Expand Up @@ -1078,8 +1077,8 @@ conflict.

If this variable is set to a positive integer, it overrides the return
values of :func:`os.cpu_count` and :func:`os.process_cpu_count`.
if this variable is set to ``process``, :func:`os.process_cpu_count` becomes
an alias of :func:`os.cpu_count` and :func:`multiprocessing.cpu_count`.
If this variable is set to ``process``, :func:`os.cpu_count` becomes
an alias of :func:`os.process_cpu_count`.

See also the :option:`-X cpu_count <-X>` command-line option.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Update :option:`-X cpu_count <-X>` command line option to support
``process`` mode that :func:`os.process_cpu_count` becomes an alias of
:func:`os.cpu_count` and :func:`multiprocessing.cpu_count`. Patch by Donghee
Na.
``process`` mode that :func:`os.cpu_count` becomes an alias of
:func:`os.process_cpu_count`. Patch by Donghee Na.