Verified Commit 7f1e2a3d authored by Justin Carpentier's avatar Justin Carpentier
Browse files

register: change flags

parent 7caf1c9a
......@@ -54,7 +54,8 @@ namespace eigenpy
Py_INCREF(tp_bases_extended.ptr());
py_type_ptr->tp_bases = tp_bases_extended.ptr();
py_type_ptr->tp_flags &= ~Py_TPFLAGS_READY; // to force the rebuild
// py_type_ptr->tp_flags &= ~Py_TPFLAGS_READY; // to force the rebuild
py_type_ptr->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE;
if(PyType_Ready(py_type_ptr) < 0) // Force rebuilding of the __bases__ and mro
{
throw std::invalid_argument("PyType_Ready fails to initialize input type.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment