summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-05-04 16:18:25 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-05-04 16:18:25 (GMT)
commita8d26688183bec915dbedc665ff081d2a7966c4b (patch)
treebde9dbbde332c9d4b9eb970b8e8d19082cacf209 /Misc
parent4f96f5ffc6dd0b171bb14666d134af84ae307752 (diff)
downloadcpython-a8d26688183bec915dbedc665ff081d2a7966c4b.zip
cpython-a8d26688183bec915dbedc665ff081d2a7966c4b.tar.gz
cpython-a8d26688183bec915dbedc665ff081d2a7966c4b.tar.bz2
Issue #1533: fix inconsistency in range function argument processing:
any non-float non-integer argument is now converted to an integer (if possible) using its __int__ method. Previously, only small arguments were treated this way; larger arguments (those whose __int__ was outside the range of a C long) would produce a TypeError. Patch by Alexander Belopolsky (with minor modifications).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index ca94ce8..acbbc27 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,12 @@ What's New in Python 2.7 beta 2?
Core and Builtins
-----------------
+- Issue #1533: fix inconsistency in range function argument
+ processing: any non-float non-integer argument is now converted to
+ an integer (if possible) using its __int__ method. Previously, only
+ small arguments were treated this way; larger arguments (those whose
+ __int__ was outside the range of a C long) would produce a TypeError.
+
- Issue #8202: sys.argv[0] is now set to '-m' instead of '-c' when
searching for the module file to be executed with the -m command
line option