Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32066
| From | Dan Loewenherz <dloewenherz@gmail.com> |
|---|---|
| Date | 2012-10-24 13:40 -0700 |
| Subject | while expression feature proposal |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2795.1351111299.27098.python-list@python.org> (permalink) |
Hi all,
This is my first post to this group--I'm not subscribed, so please CC
me in responses.
So I'm sure a lot of you have run into the following pattern. I use it
all the time and it always has felt a bit awkward due to the duplicate
variable assignment.
VAR = EXPR
while VAR:
BLOCK
VAR = EXPR
I'm curious what the possibility of adding the following to Python as
syntactic sugar:
while EXPR as VAR:
BLOCK
Apologies if that has been proposed before. I searched the archives
and couldn't find any mention of it.
Best,
Dan
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
while expression feature proposal Dan Loewenherz <dloewenherz@gmail.com> - 2012-10-24 13:40 -0700 Re: while expression feature proposal Paul Rubin <no.email@nospam.invalid> - 2012-10-24 15:19 -0700
csiph-web