From: Anthony Geay Date: Thu, 19 Mar 2015 07:35:43 +0000 (+0100) Subject: Display a representation (repr) of PyObjects not a full string (str). X-Git-Tag: V7_6_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=660812a3b41a91ac60cfe0859607f6035e776664;p=modules%2Fyacs.git Display a representation (repr) of PyObjects not a full string (str). --- diff --git a/src/runtime/TypeConversions.cxx b/src/runtime/TypeConversions.cxx index 740fe72a4..bd24737a9 100644 --- a/src/runtime/TypeConversions.cxx +++ b/src/runtime/TypeConversions.cxx @@ -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);