[pywin32-checkins] pywin32/win32/src win32consolemodule.cpp,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2005-09-20 05:24:55
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24234/win32/src Modified Files: win32consolemodule.cpp Log Message: Throw an error if attempt is made to delete an attribute of PyINPUT_RECORD Index: win32consolemodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32consolemodule.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** win32consolemodule.cpp 20 Sep 2005 01:59:54 -0000 1.4 --- win32consolemodule.cpp 20 Sep 2005 05:24:46 -0000 1.5 *************** *** 539,543 **** if (name==NULL) return -1; ! // ??? should probably add some EventType/attribute validation for everything done thru // the normal structmember api also ??? --- 539,546 ---- if (name==NULL) return -1; ! if (obvalue==NULL){ ! PyErr_SetString(PyExc_AttributeError, "PyINPUT_RECORD members can't be removed"); ! return -1; ! } // ??? should probably add some EventType/attribute validation for everything done thru // the normal structmember api also ??? |