eof

MonkeeSage MonkeeSage at gmail.com
Fri Nov 23 22:07:54 EST 2007


On Nov 23, 6:56 pm, greg <g... at cosc.canterbury.ac.nz> wrote:

> By not providing an eof() function, C -- and Python -- make
> it clear that testing for eof is not a passive operation.
> It's always obvious what's going on, and it's much harder to
> make mistakes like the above.

err...C has feof() in stdio (see "man 3 ferror").

Regards,
Jordan



More information about the Python-list mailing list