Comments on my first script?
Phillip B Oldham
phillip.oldham at gmail.com
Fri Jun 13 03:38:09 EDT 2008
Thanks guys. Those comments are really helpful. The odd semi-colon is
my PHP background. Will probably be a hard habbit to break, that
one! ;) If I do accidentally drop a semi-colon at the end of the line,
will that cause any weird errors?
Also, Chris, can you explain this:
a, b = line.split(': ')[:2]
I understand the first section, but I've not seen [:2] before.
More information about the Python-list
mailing list