do...while

Bjorn Pettersen BPettersen at NAREX.com
Fri Jun 21 19:45:26 EDT 2002


> From: Oleg Broytmann [mailto:phd at phd.pp.ru] 
> 
> 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():
>    ...

Actually, now it's spelled:

  for line in file:
     ...

<wink>

-- bjorn





More information about the Python-list mailing list