We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyUnicode_AsUTF8String
1 parent ebaf094 commit 740da8dCopy full SHA for 740da8d
Doc/c-api/unicode.rst
@@ -1075,7 +1075,8 @@ These are the UTF-8 codec APIs:
1075
1076
This caches the UTF-8 representation of the string in the Unicode object, and
1077
subsequent calls will return a pointer to the same buffer. The caller is not
1078
- responsible for deallocating the buffer.
+ responsible for deallocating the buffer. The buffer is deallocated and
1079
+ pointers to it become invalid when the Unicode object is garbage collected.
1080
1081
.. versionadded:: 3.3
1082
0 commit comments