Python 3: range objects cannot be sliced

Alan G Isaac alan.isaac at gmail.com
Sun Jan 25 15:28:30 CET 2009


On 1/16/2009 3:13 PM Alan G Isaac apparently wrote:
 > It is documented:
 > http://docs.python.org/3.0/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range


But then again, the opposite is also documented,
since `range` is a sequence type.  Quoting:

     Sequences also support slicing ...

     Some sequences also support “extended slicing”

Is this a documentation bug, or a bug in `range`?
(I'd think the latter.)

Cheers,
Alan Isaac



More information about the Python-list mailing list