In article <mailman.4219.1171936242.32031.python-list at python.org>, Gabriel Genellina wrote: > So this is the way to check for EOF. If you don't like how it was spelled, > try this: > > if data=="": break How about: if not data: break ? ;-)