From 37944e6d4aba8c8098a335e4d29b8eaa70fc285f Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 26 Oct 2017 16:26:41 +0200 Subject: [PATCH] EDF15617: In SDS no more limited to dict,tuple,list,int,float,None. --- src/SALOMESDS/SALOMESDS_PickelizedPyObjServer.cxx | 2 -- 1 file changed, 2 deletions(-) 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)); -- 2.39.2