[Python-Dev] [Python-checkins] r87162 - python/branches/release27-maint/Doc/library/stdtypes.rst
Nick Coghlan
ncoghlan at gmail.com
Sat Dec 11 06:38:52 CET 2010
On Sat, Dec 11, 2010 at 10:41 AM, raymond.hettinger
<python-checkins at python.org> wrote:
> Author: raymond.hettinger
> Date: Sat Dec 11 01:41:02 2010
> New Revision: 87162
>
> Log:
> Issue 2690: Doc fixup. xrange() objects are slicable.
>
>
> Modified:
> python/branches/release27-maint/Doc/library/stdtypes.rst
Are you sure about that one?
Python 2.7.0+ (trunk:86033, Nov 1 2010, 00:42:57)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> xrange(10)[1:2]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: sequence index must be integer, not 'slice'
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev
mailing list