mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
comparing on number of cpus makes more sense
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user