check EOF

Fredrik Lundh effbot at telia.com
Mon Apr 10 11:51:16 EDT 2000


Soundwave <maybe at lucky.com> wrote:
> how can I check EOF in python ???

read/readline returns an empty string when you reach
the end of the file.

for more info, read the fine manual:

http://www.python.org/doc/current/lib/typesother.html
=> file objects

</F>





More information about the Python-list mailing list