| 158 | std::unordered_map<mgb::Typeinfo*, PyTypeObject*> PyOp(OpDef)::ctype2pytype; |
| 159 | |
| 160 | PyObject* py_get_scope(PyObject* obj, void* /* closure */) { |
| 161 | return py::cast(reinterpret_cast<PyOp(OpDef)*>(obj)->op->scope()).release().ptr(); |
| 162 | } |
| 163 | |
| 164 | int py_set_scope(PyObject* obj, PyObject* value, void* /* closure */) { |
| 165 | if (value == NULL) { |