Concrete Proposal: while ... and while ...

Andrew Clover esuzm at primrose.csv.warwick.ac.uk
Thu May 20 16:48:01 EDT 1999


Corran Webster (cwebster at math.tamu.edu) wrote:

> I'm in agreement with you here, althought I'd prefer

> do:
>     line = readline()
> while test:
>     print line

 I like this syntax since it could allow a simple post-test loop to be
written too... maybe if the while condition has no colon, or something.
There again, 'and while' has the possibility that one might nest andwhile
clauses:

  while:
    custard= dbcursor.fetchone()
    and while custard!=None:
      and while custard[0]!=None:
        print custard[0]+' flavour custard, yum!'

-- 
This posting was brought to you by And Clover.
(Sorry.)




More information about the Python-list mailing list