| 218 | } |
| 219 | |
| 220 | static PyObject* py_dump(PyObject* self) { |
| 221 | return py::cast(reinterpret_cast<EnumWrapper*>(self)->to_string()) |
| 222 | .release() |
| 223 | .ptr(); |
| 224 | } |
| 225 | |
| 226 | static PyObject* tp_richcompare(PyObject* self, PyObject* other, int op) { |
| 227 | if (op == Py_EQ || op == Py_NE) { |