[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods
Daniel Urban
report at bugs.python.org
Fri Sep 10 15:30:44 CEST 2010
Daniel Urban <urban.dani+py at gmail.com> added the comment:
> Attached is a greatly revised patch, with two significant changes:
> - Adds support for !PyLong_CheckExact (using _PySequence_IterSearch)
Thanks, indeed, we should support that.
> Any strong feelings on whether range.index should support the start and
> stop arguments provided by list.index, tuple.index, and str.index, but
> not by collections.Sequence.index?
I don't think that this is very important.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9213>
_______________________________________
More information about the Python-bugs-list
mailing list