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>, 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 :
        else :
        #end if

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

More information about the Python-list mailing list