aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/py.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/py/source/py.cpp')
-rw-r--r--externals/grill/py/source/py.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/grill/py/source/py.cpp b/externals/grill/py/source/py.cpp
index 7cb7fa97..da9459fe 100644
--- a/externals/grill/py/source/py.cpp
+++ b/externals/grill/py/source/py.cpp
@@ -125,7 +125,7 @@ pyobj::pyobj(int argc,const t_atom *argv)
int inlets;
if(argc && CanbeInt(*argv)) {
inlets = GetAInt(*argv);
- if(inlets < 1) inlets = 1;
+ if(inlets < 0) inlets = 1;
argv++,argc--;
}
else
@@ -352,7 +352,7 @@ bool pyobj::callpy(PyObject *fun,PyObject *args)
return false;
}
else {
- if(ret != Py_None && !OutObject(this,0,ret) && PyErr_Occurred())
+ if(!OutObject(this,0,ret) && PyErr_Occurred())
PyErr_Print();
Py_DECREF(ret);
return true;
@@ -384,7 +384,7 @@ bool pyobj::CbMethodResort(int n,const t_symbol *s,int argc,const t_atom *argv)
PyObject *pargs;
- if(objects) {
+ if(objects || CntIn() == 1) {
int inlets = CntIn()-1;
pargs = PyTuple_New(inlets);
for(int i = 0; i < inlets; ++i) {