Slight irritation with try/finally indentation

Peter Hansen peter at engcorp.com
Sat May 4 23:20:07 EDT 2002


Ken Seehof wrote:
> 
> Hmm.  This thread reminds me of the brilliant solution to the
> very serious :-) lack of begin and end block markers for python:
> 
> if x:
> #begin
>     for j in range(4): #{
>         f(j);
>     #}
> #endif

Sorry, Ken, but you messed up your indentation:

if x:
    #begin
    for j in range(4): 
        #{
        f(j);
        #}
    #endif

Phew... good thing I caught it!

-Peter

P.S.: I don't want to start an indentation flame-war, but then again,
it's been a while since we had one...  ;-)



More information about the Python-list mailing list