Fix typos.
This commit is contained in:
parent
996d620420
commit
c0b44583ab
|
@ -15,7 +15,7 @@ Abstract
|
||||||
========
|
========
|
||||||
|
|
||||||
This proposal is to extend the API of several sequence types
|
This proposal is to extend the API of several sequence types
|
||||||
to include methods for iterating over the sequence in reverse.
|
to include a method for iterating over the sequence in reverse.
|
||||||
|
|
||||||
|
|
||||||
Motivation
|
Motivation
|
||||||
|
@ -181,7 +181,7 @@ Alternative Ideas
|
||||||
when *__riter__* is not defined:
|
when *__riter__* is not defined:
|
||||||
|
|
||||||
- fallback to: ``for i in xrange(len(obj)-1,-1,-1): yield obj[i]``
|
- fallback to: ``for i in xrange(len(obj)-1,-1,-1): yield obj[i]``
|
||||||
- fallback to: ``for i in itertools.count(): yield[obj[-i]]``
|
- fallback to: ``for i in itertools.count(): yield obj[-i]``
|
||||||
- fallback to: ``tmp=list(obj); tmp.reverse(); return iter(tmp)``
|
- fallback to: ``tmp=list(obj); tmp.reverse(); return iter(tmp)``
|
||||||
|
|
||||||
All of these attempt to save implementing some object methods at the
|
All of these attempt to save implementing some object methods at the
|
||||||
|
|
Loading…
Reference in New Issue