| 184 | } |
| 185 | |
| 186 | PyObject* PyOp(OpDef)::tp_richcompare(PyObject* self, PyObject* other, int op) { |
| 187 | bool same = reinterpret_cast<PyOp(OpDef)*>(self)->op->is_same( |
| 188 | *reinterpret_cast<PyOp(OpDef)*>(other)->op); |
| 189 | if (op == Py_EQ || op == Py_NE) { |
| 190 | RETURN_RICHCOMPARE(same, true, op); |
| 191 | } |
| 192 | Py_RETURN_NOTIMPLEMENTED; |
| 193 | } |
| 194 | |
| 195 | template <typename T> |
| 196 | struct EnumTrait; |