eof

MonkeeSage MonkeeSage at gmail.com
Sat Nov 24 04:07:54 CET 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