Python speed and `pcre'

Fredrik Lundh fredrik at pythonware.com
Thu Sep 2 09:54:00 EDT 1999


François Pinard <pinard at iro.umontreal.ca> wrote:
> Yes, of course.  Given strings are immutable, an implementation could have:
>
>         ref=str
>         str=str+str1
>
> and have `ref' points to a substring of `str', without copy most of
> the time, when `str1' is small.

what do you do when you have to reallocate str?

</F>





More information about the Python-list mailing list