[pywin32-checkins] pywin32/com/win32com/src PyIDispatch.cpp,1.5,1.6
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-10-24 04:35:58
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1:/tmp/cvs-serv22609/com/win32com/src Modified Files: PyIDispatch.cpp Log Message: We were unconditionally calling PyErr_Clear() - stop doing that in debug builds, and instead assert if an error is pending. Later it should be removed. Index: PyIDispatch.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyIDispatch.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PyIDispatch.cpp 26 Apr 2001 14:27:59 -0000 1.5 --- PyIDispatch.cpp 24 Oct 2003 04:32:43 -0000 1.6 *************** *** 204,208 **** --- 204,214 ---- { /* Invoke(dispid, lcid, wflags, bResultWanted, arg1, arg2...) */ + // should be no need to clear this error - but for the next few release + // I will keep it in place for release builds, and assert in debug + #ifdef _DEBUG + assert(!PyErr_Occurred()); + #else PyErr_Clear(); + #endif int argc = PyObject_Length(args); if ( argc == -1 ) |