]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
What's New in Python 3.3: complete the deprecation list
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 17 Dec 2011 03:59:06 +0000 (04:59 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 17 Dec 2011 03:59:06 +0000 (04:59 +0100)
Add also FIXMEs in unicodeobject.c

Doc/whatsnew/3.3.rst
Objects/unicodeobject.c

index 843bfdfd108ed2a889965b8df7cf165b280dd18e..4f54b6902852370b35ad721fd105314f62352a35 100644 (file)
@@ -798,6 +798,8 @@ Unicode functions and methods using :c:type:`Py_UNICODE` and
    strings)
  * :c:func:`PyUnicode_AsUnicodeCopy`: use :c:func:`PyUnicode_AsUCS4Copy` or
    :c:func:`PyUnicode_AsWideCharString`
+ * :c:func:`PyUnicode_GetMax`
+
 
 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:func:`PyUnicode_FindChar`
  * :c:macro:`Py_UNICODE_FILL`
+ * :c:macro:`Py_UNICODE_MATCH`
 
 Encoders:
 
index 2fea30b37f8e4d073e79ba4451e3b71abbe0c725..aeccfe40e00bba2858185371b0110f91af2906e2 100644 (file)
@@ -7042,6 +7042,7 @@ decode_code_page_strict(UINT code_page,
 
     if (*v == NULL) {
         /* Create unicode object */
+        /* FIXME: don't use _PyUnicode_New(), but allocate a wchar_t* buffer */
         *v = (PyObject*)_PyUnicode_New(outsize);
         if (*v == NULL)
             return -1;
@@ -7122,6 +7123,7 @@ decode_code_page_errors(UINT code_page,
             PyErr_NoMemory();
             goto error;
         }
+        /* FIXME: don't use _PyUnicode_New(), but allocate a wchar_t* buffer */
         *v = (PyObject*)_PyUnicode_New(size * Py_ARRAY_LENGTH(buffer));
         if (*v == NULL)
             goto error;