[New-bugs-announce] [issue16712] collections.abc.Sequence should not provide __reversed__
INADA Naoki
report at bugs.python.org
Tue Dec 18 13:56:01 CET 2012
New submission from INADA Naoki:
http://docs.python.org/3.3/reference/datamodel.html#object.__reversed__
> Objects that support the sequence protocol should only provide __reversed__() if they can provide an implementation that is more efficient than the one provided by reversed().
collections.abc.Sequence can't provide more efficient method.
It only make `reversed()` slower.
----------
components: Library (Lib)
messages: 177688
nosy: naoki
priority: normal
severity: normal
status: open
title: collections.abc.Sequence should not provide __reversed__
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16712>
_______________________________________
More information about the New-bugs-announce
mailing list