2 #include "PythonCppConv.hxx"
3 #include "TypeConversions.hxx"
4 #include "RuntimeSALOME.hxx"
9 #include "YacsTrace.hxx"
17 Any * convertPyObjectCpp(const TypeCode *t, PyObject *data)
19 return convertPyObjectNeutral(t, data);
22 void PyCpp::put(const void *data) throw(ConversionException)
24 put((PyObject *)data);
27 //!Convertit un PyObject de type entier en YACS::ENGINE::Any entier
29 * \param data : python object
32 void PyCpp::put(PyObject *data) throw(ConversionException)
35 //Do not need to take the Python GIL as put is called from Python node
36 a = convertPyObjectCpp(edGetType(), data);
37 DEBTRACE( "before put refcnt: " << a->getRefCnt() );
39 //_port has called incRef
41 DEBTRACE( "after put refcnt: " << a->getRefCnt() );
44 int isAdaptableCppPyObject(const TypeCode *t1, const TypeCode *t2)
46 return isAdaptableNeutralPyObject(t1, t2);