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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4