Remove vestigial reference to __reversed__.

This commit is contained in:
Guido van Rossum 2003-11-06 05:32:14 +00:00
parent f2ac224b3f
commit d21c2362e1
1 changed files with 0 additions and 3 deletions

View File

@ -67,9 +67,6 @@ reverse iteration is to specify it in a forward direction and then say
The implementation could be as simple as:: The implementation could be as simple as::
def reversed(x): def reversed(x):
if hasattr(x, 'reversed'):
for elem x.__reversed__():
yield x
if hasattr(x, 'keys'): if hasattr(x, 'keys'):
raise ValueError("mappings do not support reverse iteration") raise ValueError("mappings do not support reverse iteration")
i = len(x) i = len(x)