diff --git a/libsrc/core/python_ngcore.hpp b/libsrc/core/python_ngcore.hpp index 21f610e3..831bb56b 100644 --- a/libsrc/core/python_ngcore.hpp +++ b/libsrc/core/python_ngcore.hpp @@ -21,8 +21,7 @@ namespace ngcore struct PyNameTraits { static const std::string & GetName() { - static const std::string name = - py::cast(py::cast(T()).attr("__class__").attr("__name__")); + static const std::string name = typeid(T).name(); return name; } };