Code that ought to run fast, but can't due to Python limitations.

Paul Rubin http
Sun Jul 5 07:09:26 EDT 2009

Stefan Behnel <stefan_ml at> writes:
> You may notice that the creation of this exact tuple appears in almost all
> if the conditionals of this method. So it is part of the bottleneck.

I don't think so.  The tuple is only created when the character has
already matched, and for the vast majority of the chars in the input
stream (ordinary text chars rather than html delimiters) none of them

More information about the Python-list mailing list