diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 00faac5b69abdb43a9c16fe12176e2c409299abb..d139112578ca99652e35d0a60b0c00d99fb0eb98 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -1075,7 +1075,8 @@ These are the UTF-8 codec APIs: This caches the UTF-8 representation of the string in the Unicode object, and subsequent calls will return a pointer to the same buffer. The caller is not - responsible for deallocating the buffer. + responsible for deallocating the buffer. The buffer is deallocated and + pointers to it become invalid when the Unicode object is garbage collected. .. versionadded:: 3.3