[Python-checkins] cpython: What's New in Python 3.3: complete the deprecation list
victor.stinner
python-checkins at python.org
Sat Dec 17 04:57:14 CET 2011
http://hg.python.org/cpython/rev/880c7cffd7eb
changeset: 74008:880c7cffd7eb
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Sat Dec 17 04:59:06 2011 +0100
summary:
What's New in Python 3.3: complete the deprecation list
Add also FIXMEs in unicodeobject.c
files:
Doc/whatsnew/3.3.rst | 3 +++
Objects/unicodeobject.c | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -798,6 +798,8 @@
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 @@
* :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:
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -7042,6 +7042,7 @@
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 @@
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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list