A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-December/114818.html below:

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

[Python-Dev] cpython: Document PyUnicode_Copy() and PyUnicode_EncodeCodePage() [Python-Dev] cpython: Document PyUnicode_Copy() and PyUnicode_EncodeCodePage()"Martin v. Löwis" martin at v.loewis.de
Fri Dec 9 09:44:13 CET 2011
Am 09.12.2011 01:35, schrieb Antoine Pitrou:
> On Fri, 09 Dec 2011 00:16:02 +0100
> victor.stinner <python-checkins at 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4