mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Document the lifetime of PyUnicode_AsUTF8String
(#92325)
The current wording implied this, but didn't state it explicitly.
This commit is contained in:
parent
ebaf0945f9
commit
740da8d37a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue