Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab59594

Browse files
author
Victor Stinner
committed
What's New in Python 3.3: complete the deprecation list
Add also FIXMEs in unicodeobject.c
1 parent 1f33f2b commit ab59594

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/whatsnew/3.3.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,8 @@ Unicode functions and methods using :c:type:`Py_UNICODE` and
798798
strings)
799799
* :c:func:`PyUnicode_AsUnicodeCopy`: use :c:func:`PyUnicode_AsUCS4Copy` or
800800
:c:func:`PyUnicode_AsWideCharString`
801+
* :c:func:`PyUnicode_GetMax`
802+
801803

802804
Functions and macros manipulating Py_UNICODE* strings:
803805

@@ -813,6 +815,7 @@ Functions and macros manipulating Py_UNICODE* strings:
813815
* :c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use
814816
:c:func:`PyUnicode_FindChar`
815817
* :c:macro:`Py_UNICODE_FILL`
818+
* :c:macro:`Py_UNICODE_MATCH`
816819

817820
Encoders:
818821

Objects/unicodeobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7042,6 +7042,7 @@ decode_code_page_strict(UINT code_page,
70427042

70437043
if (*v == NULL) {
70447044
/* Create unicode object */
7045+
/* FIXME: don't use _PyUnicode_New(), but allocate a wchar_t* buffer */
70457046
*v = (PyObject*)_PyUnicode_New(outsize);
70467047
if (*v == NULL)
70477048
return -1;
@@ -7122,6 +7123,7 @@ decode_code_page_errors(UINT code_page,
71227123
PyErr_NoMemory();
71237124
goto error;
71247125
}
7126+
/* FIXME: don't use _PyUnicode_New(), but allocate a wchar_t* buffer */
71257127
*v = (PyObject*)_PyUnicode_New(size * Py_ARRAY_LENGTH(buffer));
71267128
if (*v == NULL)
71277129
goto error;

0 commit comments

Comments
 (0)