mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
comparing on number of cpus makes more sense
This commit is contained in:
parent
0163c9aa0c
commit
9b374bfa03
1 changed files with 1 additions and 1 deletions
|
@ -4947,7 +4947,7 @@ cpu_set_richcompare(Py_cpu_set *set, Py_cpu_set *other, int op)
|
|||
if (!res) \
|
||||
return NULL; \
|
||||
} \
|
||||
if (Py_TYPE(right) != &cpu_set_type || left->size != right->size) { \
|
||||
if (Py_TYPE(right) != &cpu_set_type || left->ncpus != right->ncpus) { \
|
||||
Py_DECREF(res); \
|
||||
Py_INCREF(Py_NotImplemented); \
|
||||
return Py_NotImplemented; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue