Update of /cvsroot/pure-data/externals/grill/py/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29251/source
Modified Files: pyext.cpp Log Message: display error messages if calling __init__ or _del caused an exception better error message for reload with invalid args
Index: pyext.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/py/source/pyext.cpp,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** pyext.cpp 3 Nov 2005 20:36:42 -0000 1.44 --- pyext.cpp 12 Dec 2005 14:42:54 -0000 1.45 *************** *** 263,266 **** --- 263,267 ---- Py_DECREF(init); } + else // __init__ has not been found - don't care PyErr_Clear(); *************** *** 403,407 **** ok = InitInOut(inl,outl);
! if(inl != inlets || outl != outlets) post("%s - Inlet and outlet count can't be changed by reload",thisName()); } --- 404,408 ---- ok = InitInOut(inl,outl);
! if((inl >= 0 && inl != inlets) || (outl >= 0 && outl != outlets)) post("%s - Inlet and outlet count can't be changed by reload",thisName()); }