On Sat, Dec 11, 2010 at 10:41 AM, raymond.hettinger <python-check...@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 | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com