]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 10889: Added entry for handling of indexing and slicing with ranges bigger...
authorRaymond Hettinger <python@rcn.com>
Sun, 16 Jan 2011 18:22:06 +0000 (18:22 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 16 Jan 2011 18:22:06 +0000 (18:22 +0000)
Doc/whatsnew/3.2.rst

index 3e7f007fc155cc4da02f0ea04c33842cad6b3e05..8dc241a2df8fc3aaca8d1d6ea9d5788d09d183c5 100644 (file)
@@ -541,8 +541,8 @@ Some smaller changes made to the core Python language are:
   of an effort to make more objects fully implement the
   :class:`collections.Sequence` :term:`abstract base class`.  As a result, the
   language will have a more uniform API.  In addition, :class:`range` objects
-  now support slicing and negative indices.  This makes *range* more
-  interoperable with lists::
+  now support slicing and negative indices, even with values larger than
+  :attr:`sys.maxsize`.  This makes *range* more interoperable with lists::
 
       >>> range(0, 100, 2).count(10)
       1
@@ -553,8 +553,8 @@ Some smaller changes made to the core Python language are:
       >>> range(0, 100, 2)[0:5]
       range(0, 10, 2)
 
-  (Contributed by Daniel Stutzbach in :issue:`9213` and by Alexander Belopolsky
-  in :issue:`2690`.)
+  (Contributed by Daniel Stutzbach in :issue:`9213`, by Alexander Belopolsky
+  in :issue:`2690`, and by Nick Coghlan in :issue:`10889`.)
 
 * The :func:`callable` builtin function from Py2.x was resurrected.  It provides
   a concise, readable alternative to using an :term:`abstract base class` in an