[Python-checkins] python/dist/src/Misc NEWS,1.640,1.641

nascheme@users.sourceforge.net nascheme@users.sourceforge.net
2003年2月04日 12:59:49 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv10115/Misc
Modified Files:
	NEWS 
Log Message:
If a float is passed where a int is expected, issue a DeprecationWarning
instead of raising a TypeError. Closes #660144 (again).
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.640
retrieving revision 1.641
diff -C2 -d -r1.640 -r1.641
*** NEWS	3 Feb 2003 20:53:14 -0000	1.640
--- NEWS	4 Feb 2003 20:59:40 -0000	1.641
***************
*** 224,230 ****
 -----
 
! - The PyArg_Parse functions now raise a TypeError instead of truncating float
! arguments if an integer is specified (this affects the 'b', 'B', 'h', 'H',
! 'i', and 'l' codes).
 
 
--- 224,231 ----
 -----
 
! - The PyArg_Parse functions now issue a DeprecationWarning if a float
! argument is provided when an integer is specified (this affects the 'b',
! 'B', 'h', 'H', 'i', and 'l' codes). Future versions of Python will
! raise a TypeError.
 
 

AltStyle によって変換されたページ (->オリジナル) /