diff --git a/libsrc/core/python_ngcore.hpp b/libsrc/core/python_ngcore.hpp index 44bf0362..92cbbe62 100644 --- a/libsrc/core/python_ngcore.hpp +++ b/libsrc/core/python_ngcore.hpp @@ -142,6 +142,10 @@ namespace ngcore return py::make_iterator (self.begin(),self.end()); }, py::keep_alive<0,1>()) // keep array alive while iterator is used + .def("__str__", [](TFlat& self) + { + return ToString(self); + }) ; if constexpr (detail::HasPyFormat::value)