Need a specific sort of string modification. Can someone help?
rosuav at gmail.com
Sat Jan 5 16:09:24 CET 2013
On Sun, Jan 6, 2013 at 2:03 AM, Roy Smith <roy at panix.com> wrote:
> That's why I chose to split this where I did. It was where the scan
> direction changed.
Ah, good point. In any case, this is a fairly simple and clear way of
doing things; it may or may not run faster than the explicit state
machine, but IMHO it's a lot clearer to read a split() than something
that changes state when a particular character is found.
More information about the Python-list