[Python-Dev] Re: Automatic flex interface for Python?

Eric S. Raymond esr@thyrsus.com
Thu, 22 Aug 2002 18:38:11 -0400

Tim Peters <tim.one@comcast.net>:
> > They hit the language in a weak spot created by the immutability of
> > strings.
> But you lost me here -- I don't see a connection between immutability and
> either ease of writing lexers or speed of lexers.

It's an implementation problem.  You find yourself doing a lot of 
string accessing and pasting, creating several new objects per
input char.
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>