[New-bugs-announce] [issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.

Neil Girdhar report at bugs.python.org
Fri Nov 23 17:51:40 CET 2012


New submission from Neil Girdhar:

When using sequence types polymorphically, range, list, and tuple are both iterable and subscriptable.  Unfortunately, itertools.count, cycle, and repeat objects are not subscriptable, although this is not a hard change.

Please consider making these objects subscriptable for polymorphic usage.

----------
components: Library (Lib)
messages: 176183
nosy: Neil.Girdhar
priority: normal
severity: normal
status: open
title: Make itertools count, cycle, and repeat objects subscriptable like range.
type: enhancement
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16540>
_______________________________________


More information about the New-bugs-announce mailing list