Need a specific sort of string modification. Can someone help?
Chris Angelico
rosuav at gmail.com
Sat Jan 5 10:09:24 EST 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.
ChrisA
More information about the Python-list
mailing list