Merged revisions 76292-76293 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r76292 | mark.dickinson | 2009-11-15 09:57:26 +0000 (Sun, 15 Nov 2009) | 6 lines
Issue #7298: Fix a variety of problems leading to wrong results with
the fast versions of range.__reversed__ and range iteration. Also
fix wrong results and a refleak for PyLong version of range.__reversed__.
Thanks Eric Smith for reviewing, and for suggesting improved tests.
........
r76293 | mark.dickinson | 2009-11-15 10:04:50 +0000 (Sun, 15 Nov 2009) | 1 line
r76292 commit accidentally committed some extra code; remove it
........
diff --git a/Misc/NEWS b/Misc/NEWS
index 53945e9..e23ab2f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,12 @@
Core and Builtins
-----------------
+- Issue #7298: fixes for range and reversed(range(...)). Iteration
+ over range(a, b, c) incorrectly gave an empty iterator when a, b and
+ c fit in C long but the length of the range did not. Also fix
+ several cases where reversed(range(a, b, c)) gave wrong results, and
+ fix a refleak for reversed(range(a, b, c)) with large arguments.
+
- Issue #7244: itertools.izip_longest() no longer ignores exceptions
raised during the formation of an output tuple.