while true: !!!

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Dec 13 04:59:29 CET 2000


Carel Fellinger wrote:
> I ... would have prefered (I think) something like:
> 
> loop: suite
> break <condition>: suite
> ...

Last time I thought about this, I decided that
I would like something along the lines of

   while:
     line = f.readline()
   gives line != '':
     process(line)

Alas, it would require a new keyword, making it
forever excluded from the idyllic Garden of Python
(before Py3k, anyway).

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list