mirror of https://github.com/python/cpython
I have been spoiled by chained comparisons in python
This commit is contained in:
parent
9b374bfa03
commit
8f7bdd3208
|
@ -4952,7 +4952,7 @@ cpu_set_richcompare(Py_cpu_set *set, Py_cpu_set *other, int op)
|
|||
Py_INCREF(Py_NotImplemented); \
|
||||
return Py_NotImplemented; \
|
||||
} \
|
||||
assert(left->size == right->size == res->size); \
|
||||
assert(left->size == right->size && right->size == res->size); \
|
||||
op(res->size, res->set, left->set, right->set); \
|
||||
return (PyObject *)res; \
|
||||
} \
|
||||
|
|
Loading…
Reference in New Issue