PEP 234 little bug?
Carel Fellinger
cfelling at iae.nl
Sat Mar 2 21:07:51 EST 2002
Michael 'Mickey' Lauer <mickey at tm.informatik.uni-frankfurt.de> wrote:
> Just read through some of the already implemented PEPs.
> PEP 234 (iterators) states:
>> 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." ?
No, but you can find a `__iter__' method, and in places where an
iterator is expected that function is called, and low and behold
the resulting object of that __iter__ call does have a next method.
So all is well after all:)
--
groetjes, carel
More information about the Python-list
mailing list