[New-bugs-announce] [issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

Daniel Stutzbach report at bugs.python.org
Fri Jul 9 21:06:15 CEST 2010


New submission from Daniel Stutzbach <daniel at stutzbachenterprises.com>:

>>> isinstance(range, collections.Sequence)
True
>>> [method for method in set(dir(collections.Sequence)) - set(dir(range(1))) if not method.startswith('_')]
['index', 'count']

----------
assignee: stutzbach
components: Interpreter Core
messages: 109784
nosy: stutzbach
priority: normal
severity: normal
stage: unit test needed
status: open
title: range purports to implement the Sequence ABC, but is missing index and count methods
type: behavior
versions: Python 3.1, Python 3.2

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


More information about the New-bugs-announce mailing list