summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-12 12:24:15 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-12 12:24:15 (GMT)
commit16e6a80923db90031a50790613ef3673b30886d2 (patch)
tree2a0498283bf419dc3633649ee4f60cfd8e126c08 /Include
parentb0a82a6a7f0686f99e19cc04b498abcd2896b906 (diff)
downloadcpython-16e6a80923db90031a50790613ef3673b30886d2.zip
cpython-16e6a80923db90031a50790613ef3673b30886d2.tar.gz
cpython-16e6a80923db90031a50790613ef3673b30886d2.tar.bz2
PyUnicode_Resize(): warn about canonical representation
Call also directly unicode_resize() in unicodeobject.c
Diffstat (limited to 'Include')
-rw-r--r--Include/unicodeobject.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 32d7df7..cd35ae6 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -779,7 +779,10 @@ PyAPI_FUNC(Py_UNICODE) PyUnicode_GetMax(void);
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 */