File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -386,6 +386,13 @@ APIs:
386386 .. versionadded:: 3.3
387387
388388
389+ .. c:function:: PyObject* PyUnicode_Copy(PyObject *unicode)
390+
391+ Get a new copy of a Unicode object.
392+
393+ .. versionadded :: 3.3
394+
395+
389396.. c :function :: PyObject* PyUnicode_FromKindAndData (int kind, const void *buffer, \
390397 Py_ssize_t size)
391398
@@ -1379,6 +1386,15 @@ the user settings on the machine running the codec.
13791386 raised by the codec.
13801387
13811388
1389+ .. c :function :: PyObject* PyUnicode_EncodeCodePage (int code_page, PyObject *unicode, const char *errors)
1390+
1391+ Encode the Unicode object using the specified code page and return a Python
1392+ bytes object. Return *NULL * if an exception was raised by the codec. Use
1393+ :c:data: `CP_ACP ` code page to get the MBCS encoder.
1394+
1395+ .. versionadded :: 3.3
1396+
1397+
13821398.. c :function :: PyObject* PyUnicode_EncodeMBCS (const Py_UNICODE *s, Py_ssize_t size, const char *errors)
13831399
13841400 Encode the :c:type: `Py_UNICODE ` buffer of the given *size * using MBCS and return
@@ -1387,7 +1403,7 @@ the user settings on the machine running the codec.
13871403
13881404 .. deprecated-removed :: 3.3 4.0
13891405 Part of the old-style :c:type: `Py_UNICODE ` API; please migrate to using
1390- :c:func: `PyUnicode_AsMBCSString `.
1406+ :c:func: `PyUnicode_AsMBCSString ` or :c:func: ` PyUnicode_EncodeCodePage ` .
13911407
13921408
13931409Methods & Slots
You can’t perform that action at this time.
0 commit comments