diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2015-08-13 19:37:08 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2015-08-13 19:37:08 (GMT) |
commit | 80d62e628b25502239b5a3dc7c5aaca3deaa7e9f (patch) | |
tree | cd6b9fb1b5aef0bb6f814ba4afeb1c70a2cd888b /Modules/clinic | |
parent | aa525d0cae47eac4610e3ae5531c1f92cab69c73 (diff) | |
download | cpython-80d62e628b25502239b5a3dc7c5aaca3deaa7e9f.zip cpython-80d62e628b25502239b5a3dc7c5aaca3deaa7e9f.tar.gz cpython-80d62e628b25502239b5a3dc7c5aaca3deaa7e9f.tar.bz2 |
Issue #23530: fix clinic comment.
Diffstat (limited to 'Modules/clinic')
-rw-r--r-- | Modules/clinic/posixmodule.c.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index 98eeae4..a7045a8 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -2116,7 +2116,7 @@ PyDoc_STRVAR(os_sched_getaffinity__doc__, "sched_getaffinity($module, pid, /)\n" "--\n" "\n" -"Return the affinity of the process identified by pid.\n" +"Return the affinity of the process identified by pid (or the current process if zero).\n" "\n" "The affinity is returned as a set of CPU identifiers."); @@ -5178,7 +5178,11 @@ PyDoc_STRVAR(os_cpu_count__doc__, "cpu_count($module, /)\n" "--\n" "\n" -"Return the number of CPUs in the system; return None if indeterminable."); +"Return the number of CPUs in the system; return None if indeterminable.\n" +"\n" +"This number is not equivalent to the number of CPUs the current process can\n" +"use. The number of usable CPUs can be obtained with\n" +"``len(os.sched_getaffinity(0))``"); #define OS_CPU_COUNT_METHODDEF \ {"cpu_count", (PyCFunction)os_cpu_count, METH_NOARGS, os_cpu_count__doc__}, @@ -5788,4 +5792,4 @@ exit: #ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF #define OS_SET_HANDLE_INHERITABLE_METHODDEF #endif /* !defined(OS_SET_HANDLE_INHERITABLE_METHODDEF) */ -/*[clinic end generated code: output=f3f92b2d2e2c3fe3 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=35b50461dbecd65d input=a9049054013a1b77]*/ |