diff --git a/src/interpreter.cc b/src/interpreter.cc index 08544c4df99770bad6c8982c304cd961d52183f4..23ef07f9e1d77c4f2b633811134d084f2baa6138 100644 --- a/src/interpreter.cc +++ b/src/interpreter.cc @@ -94,7 +94,7 @@ std::string Interpreter::python( const std::string& command ) std::cout << "Result is NULL but no error occurred." << std::endl; } } else { - result = PyObject_Str(result); + result = PyObject_Repr(result); } std::string value = PyString_AsString(result); return value;