[Python-ideas] "While" suggestion

Steven Bethard steven.bethard at gmail.com
Thu Jul 3 22:29:06 CEST 2008


On Thu, Jul 3, 2008 at 2:22 PM, Stavros Korokithakis
<stavros at korokithakis.net> wrote:
> I don't know where this "while True" concept snuck in, the proposal isn't
> supposed to replace those, it's supposed to replace this:
>
> <setup>
> while <expression>"
>    <stuff>
>    <setup>

The "while True" concept "snuck in" because many of us write this idiom as::

    while True:
        <setup>
        if not <expression>:
            break

Steve
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
 --- Bucky Katt, Get Fuzzy



More information about the Python-ideas mailing list