while expression feature proposal
Grant Edwards
invalid at invalid.invalid
Thu Oct 25 10:15:05 EDT 2012
More information about the Python-list mailing list
Thu Oct 25 10:15:05 EDT 2012
- Previous message (by thread): while expression feature proposal
- Next message (by thread): while expression feature proposal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2012-10-24, Cameron Simpson <cs at zip.com.au> wrote: >| I must say I really like the parity of Dan's >| while EXPR as VAR: >| BLOCK >| proposal with the "with" statement. > > Well, it's nice. But usually EXPR will be a boolean. I guess that depends on what sort of programs you write. In my experience, EXPR is usually a read from a file/socket/pipe that returns '' on EOF. If VAR is not '', then you process, then you process it inside the loop. -- Grant Edwards grant.b.edwards Yow! We're going to a at new disco! gmail.com
- Previous message (by thread): while expression feature proposal
- Next message (by thread): while expression feature proposal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list