Am 09.12.2011 01:35, schrieb Antoine Pitrou:
> On Fri, 09 Dec 2011 00:16:02 +0100
> victor.stinner <python-check...@python.org> wrote:
>>  
>> +.. c:function:: PyObject* PyUnicode_Copy(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?

It can convert a unicode subtype object into a an exact unicode
object.

I'd rename it to _PyUnicode_AsExactUnicode, and undocument it.

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to