On Sun, Jan 6, 2013 at 2:03 AM, Roy Smith <r...@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 -- http://mail.python.org/mailman/listinfo/python-list