[Python-Dev] cpython: Document PyUnicode_Copy() and PyUnicode_EncodeCodePage() (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Fri Dec 9 01:35:35 CET 2011


On Fri, 09 Dec 2011 00:16:02 +0100 victor.stinner <python-checkins at python.org> wrote:

+.. c:function:: PyObject* PyUnicodeCopy(PyObject *unicode) + + Get a new copy of a Unicode object. + + .. versionadded:: 3.3

I'm not sure I understand. Why would you make a copy of an immutable object?



More information about the Python-Dev mailing list