[Python-checkins] CVS: python/dist/src/Misc NEWS,1.320,1.321

Tim Peters tim_one@users.sourceforge.net
Wed, 28 Nov 2001 19:26:39 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv22096/python/Misc

Modified Files:
	NEWS 
Log Message:
SF bug 486278 SystemError: Python/getargs.c:1086: bad.
vgetargskeywords():  Now that this routine is checking for bad input
(rather than dump core in some cases), some bad calls are raising errors
that previously "worked".  This patch makes the error strings more
revealing, and changes the exceptions from SystemError to RuntimeError
(under the theory that SystemError is more of a "can't happen!" assert-
like thing, and so inappropriate for bad arguments to a public C API
function).


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.320
retrieving revision 1.321
diff -C2 -d -r1.320 -r1.321
*** NEWS	2001/11/25 14:50:56	1.320
--- NEWS	2001/11/29 03:26:37	1.321
***************
*** 1,3 ****
! What's New in Python 2.2c1?
  XXX Release date: ??-Dec-2001 XXX
  ===========================
--- 1,3 ----
! What's New in Python 2.2c1
  XXX Release date: ??-Dec-2001 XXX
  ===========================
***************
*** 22,25 ****
--- 22,32 ----
  
  C API
+ 
+ - PyArg_ParseTupleAndKeywords() requires that the number of entries in
+   the keyword list equals the number of argument specifiers.  This
+   wasn't checked correctly, and PyArg_ParseTupleAndKeywords could even
+   dump core in some bad cases.  This has been repaired.  As a result,
+   PyArg_ParseTupleAndKeywords may raise RuntimeError in bad cases that
+   previously went unchallenged.
  
  New platforms