Skip to content
Snippets Groups Projects
Commit aabd39ac authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Display repr() output instead of str() when command is successful.

parent 67fcf2b1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment