[PD-cvs] externals/grill/py/source pyext.cpp,1.43,1.44
Thomas Grill
xovo at users.sourceforge.net
Thu Nov 3 21:36:44 CET 2005
Update of /cvsroot/pure-data/externals/grill/py/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14668/source
Modified Files:
pyext.cpp
Log Message:
display error messages if calling __init__ or _del caused an exception
updated docs
compiler flag to exclude DSP objects
pyext: fix for missing __init__ attribute
some ASSERTs for explicitly created pyext classes (should be runtime checks i guess)
let _inlets and _outlets default to 0
Index: pyext.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/py/source/pyext.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** pyext.cpp 26 Sep 2005 13:59:59 -0000 1.43
--- pyext.cpp 3 Nov 2005 20:36:42 -0000 1.44
***************
*** 252,258 ****
if(PyMethod_Check(init)) {
PyObject *res = PyObject_CallObject(init,pargs);
! if(!res)
// exception is set
ok = false;
else
Py_DECREF(res);
--- 252,261 ----
if(PyMethod_Check(init)) {
PyObject *res = PyObject_CallObject(init,pargs);
! if(!res) {
// exception is set
ok = false;
+ // we want to know why __init__ failed...
+ PyErr_Print();
+ }
else
Py_DECREF(res);
***************
*** 282,289 ****
if(ret)
Py_DECREF(ret);
! #ifdef FLEXT_DEBUG
! else
! post("%s - Could not call _del method",thisName());
! #endif
Py_DECREF(objdel);
}
--- 285,290 ----
if(ret)
Py_DECREF(ret);
! else
! PyErr_Print();
Py_DECREF(objdel);
}
More information about the Pd-cvs
mailing list