Python indentation
Josef Meile
jmeile at hotmail.com
Fri Jul 9 16:49:09 EDT 2004
> 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'
>
>
> ;-)
>
> -Peter
Oh yes, I forgot that the backslash "\" could break the indentation. But
I think nobody would do this intentionally. The word "brutal" says it.
Anyway, a good way of offuscating code; although is not what I do :-)
More information about the Python-list
mailing list