do python's nifty indentation rules spell the death of one-liners?

Evan Simpson evan at 4-am.com
Wed Apr 16 23:06:58 EDT 2003


Garry Knight wrote:
> Maybe I didn't completely understand what the OP meant, but this isn't a
> one-liner. It's a five-liner.

python -c """exec('''print 2$$for i in (1,4):$$  print 
i$$'''.replace('$$','\n'))"""

Yech,

evan @ 4-am







More information about the Python-list mailing list