Compare source code

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Nov 2 08:07:13 CET 2010


In message <slrnicv44s.9it.usenet-nospam at guild.seebs.net>, Seebs wrote:

> At least in C, if I see:
>        if (foo)
>                a;
>        else
>                b;
>                c;
> 
> I *know* that something is wrong.

This is why, when I started learning Python, I soon developed the habit of 
inserting explicit “#end” markers. To Pythonize your example my way, it 
would have come out as

        if foo :
                a
        else :
                b
        #end if
                c

which should also give a hint that something might be wrong.



More information about the Python-list mailing list