From: Anthony Geay Date: Thu, 26 Oct 2017 14:26:41 +0000 (+0200) Subject: EDF15617: In SDS no more limited to dict,tuple,list,int,float,None. X-Git-Tag: V9_0_0~3^2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=37944e6d4aba8c8098a335e4d29b8eaa70fc285f;p=modules%2Fkernel.git EDF15617: In SDS no more limited to dict,tuple,list,int,float,None. --- diff --git a/src/SALOMESDS/SALOMESDS_PickelizedPyObjServer.cxx b/src/SALOMESDS/SALOMESDS_PickelizedPyObjServer.cxx index 7de5f2c2b..84c38bc87 100644 --- a/src/SALOMESDS/SALOMESDS_PickelizedPyObjServer.cxx +++ b/src/SALOMESDS/SALOMESDS_PickelizedPyObjServer.cxx @@ -184,8 +184,6 @@ void PickelizedPyObjServer::setNewPyObj(PyObject *obj) throw Exception("PickelizedPyObjServer::setNewPyObj : trying to assign a NULL pyobject in this !"); if(obj==_self) return ; - if(PyList_Check(obj)==0 && PyDict_Check(obj)==0 && PyTuple_Check(obj)==0 && PyString_Check(obj)==0 && PyInt_Check(obj)==0 && PyBool_Check(obj)==0 && PyFloat_Check(obj)==0 && obj!=Py_None) - throw Exception("PickelizedPyObjServer::setNewPyObj : Supported python types are [list,tuple,dict,str,int,bool,float,None] !"); if(_self) { PyObject *selfType(PyObject_Type(_self));