Remove vestigial reference to __reversed__.
This commit is contained in:
parent
f2ac224b3f
commit
d21c2362e1
|
@ -67,9 +67,6 @@ reverse iteration is to specify it in a forward direction and then say
|
|||
The implementation could be as simple as::
|
||||
|
||||
def reversed(x):
|
||||
if hasattr(x, 'reversed'):
|
||||
for elem x.__reversed__():
|
||||
yield x
|
||||
if hasattr(x, 'keys'):
|
||||
raise ValueError("mappings do not support reverse iteration")
|
||||
i = len(x)
|
||||
|
|
Loading…
Reference in New Issue