- PyObject *pArgs = PyTuple_New(2);
- PyTuple_SET_ITEM(pArgs, 0, PyInt_FromLong(a0));
- PyTuple_SET_ITEM(pArgs, 1, PyInt_FromLong(a1));
- callPython(pArgs);
- Py_DECREF(pArgs);
- return Signal2<R,V0,V1>::operator()(a0, a1);
+ if (m_list)
+ {
+ PyObject *pArgs = PyTuple_New(3);
+ PyTuple_SET_ITEM(pArgs, 0, PyFrom(a0));
+ PyTuple_SET_ITEM(pArgs, 1, PyFrom(a1));
+ PyTuple_SET_ITEM(pArgs, 2, PyFrom(a2));
+ callPython(pArgs);
+ Org_Py_DECREF(pArgs);
+ }
+ return Signal3<R,V0,V1,V2>::operator()(a0, a1, a2);