Skip to content
Snippets Groups Projects
Unverified Commit 60407e8a authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

Document the lifetime of `PyUnicode_AsUTF8String` (GH-92325)



The current wording implied this, but didn't state it explicitly.
(cherry picked from commit 740da8d3)

Co-authored-by: default avatarMatt Wozniski <godlygeek@gmail.com>
parent df48bd92
Branches
Tags
No related merge requests found
...@@ -1110,7 +1110,8 @@ These are the UTF-8 codec APIs: ...@@ -1110,7 +1110,8 @@ These are the UTF-8 codec APIs:
This caches the UTF-8 representation of the string in the Unicode object, and 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 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 .. versionadded:: 3.3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment