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
diff --git a/Misc/NEWS b/Misc/NEWS
index 3129276..73ee64a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -11,6 +11,9 @@
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
class is a statically allocated type object (such as defined by an