Roy Smith:
> No reason to limit how many splits get done if you're
> explicitly going to slice the first two.

You are probably right for this problem, because most lines are 2
items long, but in scripts that have to process lines potentially
composed of many parts, setting a max number of parts speeds up your
script and reduces memory used, because you have less parts at the
end.

Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to