[Python-ideas] "While" suggestion

Brett Cannon brett at python.org
Thu Jul 3 19:46:05 CEST 2008

On Thu, Jul 3, 2008 at 8:45 AM, Facundo Batista
<facundobatista at gmail.com> wrote:
> 2008/7/3 Fred Drake <fdrake at acm.org>:
>> The "while <expr> as <var>:" for has a certain level of attraction, because
>> it does deal very well with a very common case, but I don't know that it
>> would make that much difference in my code.
> Note that what I like in it is *not* that it solves a lot of cases,
> but that it makes the syntax more coherent, and solves a common case
> in the way, :)

Typically a good way of making a point that a new syntax proposal will
have impact is to find as many places as possible in the standard
library where the code was improved by the change. If a bunch of
places become easier to read then that will squash the need for it
solve a ton of different cases because it solves a very common case


More information about the Python-ideas mailing list