diff Include/unicodeobject.h @ 73947:3ad7d01acbf4

PyUnicode_Resize(): warn about canonical representation Call also directly unicode_resize() in unicodeobject.c
author Victor Stinner <victor.stinner@haypocalc.com>
date Mon, 12 Dec 2011 13:24:15 +0100
parents 61a2cae5308c
children 279b0aee0cfb
line wrap: on
line diff
--- a/Include/unicodeobject.h	Mon Dec 12 13:08:33 2011 +0100
+++ b/Include/unicodeobject.h	Mon Dec 12 13:24:15 2011 +0100
@@ -779,7 +779,10 @@
    a new string and copy characters), or create a new string.
 
    Error handling is implemented as follows: an exception is set, -1
-   is returned and *unicode left untouched. */
+   is returned and *unicode left untouched.
+
+   WARNING: The function doesn't check string content, the result may not be a
+            string in canonical representation. */
 
 PyAPI_FUNC(int) PyUnicode_Resize(
     PyObject **unicode,         /* Pointer to the Unicode object */