33 return PyObject_Repr((
PyObject*)self);
35 const std::string className =
GetCppName(self);
36 auto printResult =
gInterpreter->ToString(className.c_str(), cppObj);
37 if (printResult.find(
"@0x") == 0) {
39 return PyObject_Repr((
PyObject*)self);
56 PyObject *pyclass = PyTuple_GetItem(args, 0);
#define CPyCppyy_PyText_FromString
static std::string GetCppName(const CPPInstance *self)
PyObject * ClingPrintValue(CPPInstance *self, PyObject *)
Cppyy::TCppType_t ObjectIsA(bool check_smart=true) const
bool AddToClass(PyObject *pyclass, const char *label, PyCFunction cfunc, int flags=METH_VARARGS)
Set of helper functions that are invoked from the pythonizors, on the Python side.
RPY_EXPORTED std::string GetScopedFinalName(TCppType_t type)
PyObject * AddPrettyPrintingPyz(PyObject *self, PyObject *args)
Add pretty printing pythonization.