[Python-checkins] python/dist/src/Misc NEWS,1.528,1.529

doerwalter@users.sourceforge.net doerwalter@users.sourceforge.net
Tue, 19 Nov 2002 12:49:17 -0800


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

Modified Files:
	NEWS 
Log Message:
Change int() so that passing a string, unicode, float or long argument
that is outside the integer range no longer raises OverflowError, but
returns a long object instead.

This fixes SF bug http://www.python.org/sf/635115


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.528
retrieving revision 1.529
diff -C2 -d -r1.528 -r1.529
*** NEWS	19 Nov 2002 08:12:57 -0000	1.528
--- NEWS	19 Nov 2002 20:49:13 -0000	1.529
***************
*** 12,15 ****
--- 12,18 ----
  Type/class unification and new-style classes
  --------------------------------------------
+ - int() now returns a long object if the argument is outside the
+   integer range, so int("4"*1000), int(1e200) and int(1L<<1000) will
+   all return long objects instead of raising an OverflowError.
  
  - Assignment to __class__ is disallowed if either the old or the new