- PyObject *pArgs = PyTuple_New(1);
- PyTuple_SET_ITEM(pArgs, 0, PyInt_FromLong(a0));
- callPython(pArgs);
- Py_DECREF(pArgs);
- return Signal1<R,V0>::operator()(a0);
- }
-};
-
-template <class R, class V0>
-class PSignal1Str: public PSignal, public Signal1<R,V0>
-{
-public:
- R operator()(V0 a0)
- {
- PyObject *pArgs = PyTuple_New(1);
- PyTuple_SET_ITEM(pArgs, 0, PyString_FromString(a0));
- callPython(pArgs);
- Py_DECREF(pArgs);
+ if (m_list)
+ {
+ PyObject *pArgs = PyTuple_New(1);
+ PyTuple_SET_ITEM(pArgs, 0, PyFrom(a0));
+ callPython(pArgs);
+ Org_Py_DECREF(pArgs);
+ }