[Python-Dev] Modifying the PyUnicode_FromUnicode result

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat, 21 Apr 2001 14:07:14 +0200


> This is true for the APIs in unicodeobject.c: as long as the newly
> created object hasn't "left" the Unicode implementation, the APIs
> in there are free to modify the otherwise immutable object.

That means that PyUnicode_FromUnicode does give a guarantee to return
a fresh object, right?

Then I cannot understand why it only gives this guarantee to callers
inside unicodeobject.c, and not to other callers...

Regards,
Martin