speeding up string.split()

Remco Gerlich scarblac at pino.selwerd.nl
Mon May 28 04:36:51 EDT 2001

jcm <grumble at usa.net> wrote in comp.lang.python:
> It'd be Nice if the Python parser (or bytecode-compiler or whatever
> non-runtime thing is most appropriate) would translate the addition of
> two string literals into a single string.  Or maybe it does this
> already?  I haven't tried.

Python does *no* magic optimizations. It's completely WYSIWYG in that
respect. You tell it to add the two strings, Python does that, at runtime
like every other addition.

Remco Gerlich

More information about the Python-list mailing list