Ben Bacarisse <ben.use...@bsb.me.uk>:

> Python opts for
>
>   while True:
>      c = sys.stdin.read(1)
>      if c != ' ': break

I opt for that in C and bash as well.

In fact, when I start writing a loop, I first type:

    while True:
        <cursor>

Once it is done, I might notice that the loop begins:

    while True:
        if ...
            break

and merge "while" and "if".


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to