mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
PyUnicode_Resize(): warn about canonical representation
Call also directly unicode_resize() in unicodeobject.c
This commit is contained in:
parent
b0a82a6a7f
commit
16e6a80923
2 changed files with 17 additions and 13 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue