New (?) suggestion re: 'while x = f(): ...'

Ville Vainio vvainio at tp.spt.fi
Wed May 29 09:24:45 EDT 2002


aahz at pythoncraft.com (Aahz) wrote in message news:<ad1hv0$95i$1 at panix1.panix.com>...

> This isn't abuse; this was precisely the intention of creating iterators
> and generators.

Speaking of which - why does the iterator of file objects return
strings with trailing \n's in place? Considering that we don't have to
detect EOF by ''...



More information about the Python-list mailing list