[Python-checkins] r88052 - python/branches/py3k/Doc/whatsnew/3.2.rst
raymond.hettinger
python-checkins at python.org
Sun Jan 16 19:22:06 CET 2011
Author: raymond.hettinger
Date: Sun Jan 16 19:22:06 2011
New Revision: 88052
Log:
Issue 10889: Added entry for handling of indexing and slicing with ranges bigger than sys.maxsize.
Modified:
python/branches/py3k/Doc/whatsnew/3.2.rst
Modified: python/branches/py3k/Doc/whatsnew/3.2.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.2.rst (original)
+++ python/branches/py3k/Doc/whatsnew/3.2.rst Sun Jan 16 19:22:06 2011
@@ -541,8 +541,8 @@
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 @@
>>> 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
More information about the Python-checkins
mailing list