do...while

Oleg Broytmann phd at phd.pp.ru
Fri Jun 21 17:24:52 EDT 2002


On Fri, Jun 21, 2002 at 12:53:02PM -0700, Chris Barker wrote:
> while line = file.readline():

   In Python it is spelled

for line in file.xreadlines():
   ...

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list