]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
Display a representation (repr) of PyObjects not a full string (str).
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 19 Mar 2015 07:35:43 +0000 (08:35 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 19 Mar 2015 07:35:43 +0000 (08:35 +0100)
src/runtime/TypeConversions.cxx

index 740fe72a409769cf8795598959d939bb053dcd54..bd24737a98159ac2bdcd4e3a765451898e7587f2 100644 (file)
@@ -2267,7 +2267,7 @@ namespace YACS
     {
       PyObject *s;
       PyGILState_STATE gstate = PyGILState_Ensure(); 
-      s=PyObject_Str(ob);
+      s=PyObject_Repr(ob);
       std::string ss(PyString_AsString(s),PyString_Size(s));
       Py_DECREF(s);
       PyGILState_Release(gstate);