Kaydet (Commit) ab595943 authored tarafından Victor Stinner's avatar Victor Stinner

What's New in Python 3.3: complete the deprecation list

Add also FIXMEs in unicodeobject.c
üst 1f33f2b0
...@@ -798,6 +798,8 @@ Unicode functions and methods using :c:type:`Py_UNICODE` and ...@@ -798,6 +798,8 @@ Unicode functions and methods using :c:type:`Py_UNICODE` and
strings) strings)
* :c:func:`PyUnicode_AsUnicodeCopy`: use :c:func:`PyUnicode_AsUCS4Copy` or * :c:func:`PyUnicode_AsUnicodeCopy`: use :c:func:`PyUnicode_AsUCS4Copy` or
:c:func:`PyUnicode_AsWideCharString` :c:func:`PyUnicode_AsWideCharString`
* :c:func:`PyUnicode_GetMax`
Functions and macros manipulating Py_UNICODE* strings: Functions and macros manipulating Py_UNICODE* strings:
...@@ -813,6 +815,7 @@ Functions and macros manipulating Py_UNICODE* strings: ...@@ -813,6 +815,7 @@ Functions and macros manipulating Py_UNICODE* strings:
* :c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use * :c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use
:c:func:`PyUnicode_FindChar` :c:func:`PyUnicode_FindChar`
* :c:macro:`Py_UNICODE_FILL` * :c:macro:`Py_UNICODE_FILL`
* :c:macro:`Py_UNICODE_MATCH`
Encoders: Encoders:
......
...@@ -7042,6 +7042,7 @@ decode_code_page_strict(UINT code_page, ...@@ -7042,6 +7042,7 @@ decode_code_page_strict(UINT code_page,
if (*v == NULL) { if (*v == NULL) {
/* Create unicode object */ /* Create unicode object */
/* FIXME: don't use _PyUnicode_New(), but allocate a wchar_t* buffer */
*v = (PyObject*)_PyUnicode_New(outsize); *v = (PyObject*)_PyUnicode_New(outsize);
if (*v == NULL) if (*v == NULL)
return -1; return -1;
...@@ -7122,6 +7123,7 @@ decode_code_page_errors(UINT code_page, ...@@ -7122,6 +7123,7 @@ decode_code_page_errors(UINT code_page,
PyErr_NoMemory(); PyErr_NoMemory();
goto error; goto error;
} }
/* FIXME: don't use _PyUnicode_New(), but allocate a wchar_t* buffer */
*v = (PyObject*)_PyUnicode_New(size * Py_ARRAY_LENGTH(buffer)); *v = (PyObject*)_PyUnicode_New(size * Py_ARRAY_LENGTH(buffer));
if (*v == NULL) if (*v == NULL)
goto error; goto error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment