Using for in one-liner

wittempj@hotmail.com martin.witte at gmail.com
Mon Aug 15 12:46:03 EDT 2005


to me it seems the ',' is superfluous, this works: python  -c "import
sys;print ''.join([l for l in sys.stdin.readlines()])" in 2.4.1 - with
the comma it works as well but it looks weird, as if you want to
un-pack a tuple.




More information about the Python-list mailing list