[New-bugs-announce] [issue16712] collections.abc.Sequence should not provide __reversed__
report at bugs.python.org
Tue Dec 18 13:56:01 CET 2012
New submission from INADA Naoki:
> 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)
title: collections.abc.Sequence should not provide __reversed__
versions: Python 3.4, Python 3.5
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce