PEP 234 little bug?

Michael 'Mickey' Lauer mickey at tm.informatik.uni-frankfurt.de
Sat Mar 2 18:45:44 EST 2002


Just read through some of the already implemented PEPs.

PEP 234 (iterators) states:

>    - It has been proposed that a file object should be its own
>      iterator, with a next() method returning the next line.  This
>      has certain advantages, and makes it even clearer that this
>      iterator is destructive.  The disadvantage is that this would
>      make it even more painful to implement the "sticky
>      StopIteration" feature proposed in the previous bullet.
>
>      Resolution: this has been implemented.

I can't see a next() in a file object. Shouldn't it be
"Resolution: this has not been implemented." ?

Yours,

:M:




More information about the Python-list mailing list