Fix typos.

This commit is contained in:
Raymond Hettinger 2003-09-26 03:07:56 +00:00
parent 996d620420
commit c0b44583ab
1 changed files with 2 additions and 2 deletions

View File

@ -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