semicolon at end of python's statements

Chris Angelico rosuav at gmail.com
Fri Aug 30 18:18:51 EDT 2013


On Sat, Aug 31, 2013 at 12:14 AM, Antoon Pardon
<antoon.pardon at rece.vub.ac.be> wrote:
> Maybe python should just allow more than one control structure on one
> line and then considers the end of the suite the end of both controls.
> In that case we could just write the following:
>
>   for a in lst: if a % 2:
>       treat a
>       process a some more
>   after loop things.

Exactly what I suggested a while ago :) This is how we got onto this
subject - a discussion of how physical structure and logical structure
can differ.

ChrisA



More information about the Python-list mailing list