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: EMC2_V_1_0_2~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ed474046c949ecfb1f76b27e43dc26d60ae90b67;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));