From aabd39acebbdca321e1a3a71b9a481a2143387b6 Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Fri, 11 Feb 2011 18:26:21 +0100
Subject: [PATCH] Display repr() output instead of str() when command is
 successful.

---
 src/interpreter.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/interpreter.cc b/src/interpreter.cc
index 08544c4..23ef07f 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;
-- 
GitLab