Python indentation

Nikola Plejic its_in at the.sig
Fri Jul 9 21:40:23 CEST 2004


Peter Hansen wrote:
> Well, if you try hard enough, you can still get pretty brutal:
> 
> a = 5
> 
> if a == 6: print '6'
> else:
>    if a == 7:
>     print '7'
>    \
>  elif a \
>        == 8:
>        print '8'
>    else:
>                print 'none of the above'
> 

Living proof that you actually can write really bad-looking code in 
Python. Brutal is just the correct word for code like this :).

Nice one ;).

-- 
regards,              [ mailto: zweistein at ftml dot net ]
Nikola                [ http://hades.indivia.net/         ]



More information about the Python-list mailing list