how to avoid leading white spaces
Ian Kelly
ian.g.kelly at gmail.com
Mon Jun 6 13:42:27 EDT 2011
On Mon, Jun 6, 2011 at 11:48 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
> I like the readability of this version, but isn't generating an exception on
> every other line going to kill performance?
I timed it on the example data before I posted and found that it was
still 10 times as fast as the regex version. I didn't time the
version without the exceptions.
More information about the Python-list
mailing list