What is the best way to print the usage string ?
Sion Arrowsmith
siona at chiark.greenend.org.uk
Fri Aug 4 09:41:25 EDT 2006
There's been a good lot of response to the problem originally stated,
but no-one's pointed out that:
>print reduce(lambda x, y: x + ':' + y, sys.argv[1:])
is a confusing (and slow) way of writing:
print ':'.join(sys.argv[1:])
--
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
___ | "Frankly I have no feelings towards penguins one way or the other"
\X/ | -- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
More information about the Python-list
mailing list