Salome HOME
EDF15617: In SDS no more limited to dict,tuple,list,int,float,None.
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 26 Oct 2017 14:26:41 +0000 (16:26 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 26 Oct 2017 14:26:41 +0000 (16:26 +0200)
src/SALOMESDS/SALOMESDS_PickelizedPyObjServer.cxx

index 7de5f2c2b7b5433ae3acbbbfe486dae55653949d..84c38bc87c34ee10d0daef3829cda5b5575eebac 100644 (file)
@@ -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));