From 65ed89c0348acfa137ff44bf133fe8c18d5b50e4 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Fri, 30 Jul 2021 17:23:37 +0200 Subject: [PATCH] types: fix registration --- src/register.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/register.cpp b/src/register.cpp index 2bc005a..9bded2b 100644 --- a/src/register.cpp +++ b/src/register.cpp @@ -54,8 +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_DEFAULT | Py_TPFLAGS_HEAPTYPE; + 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."); -- GitLab