[Python-Dev] Re: _PyUnicode_New/PyUnicode_Resize

Guido van Rossum guido@python.org
Wed, 05 Apr 2000 10:11:02 -0400


> E.g. say Unicode gets interned someday, then resize will
> need to watch out not resizing a Unicode object which is
> already stored in the interning dict.

Note that string objects deal with this by requiring that the
reference count is 1 when a string is resized.  This effectively
enforces that resizes are only used when the original creator is still
working on the string.

--Guido van Rossum (home page: http://www.python.org/~guido/)