aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/python-wrapper.swig
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2025-08-08 13:57:58 -0700
committerGitHub <noreply@github.com>2025-08-08 15:57:58 -0500
commit412ea0b675522fd161382d5ce437e51f0505337a (patch)
treed235f38831909c086f3552b0ee8a5a7209fb54c3 /lldb/scripts/Python/python-wrapper.swig
parent4d3feaea66f43758518d15e07a975e3492317b1c (diff)
downloadllvm-412ea0b675522fd161382d5ce437e51f0505337a.zip
llvm-412ea0b675522fd161382d5ce437e51f0505337a.tar.gz
llvm-412ea0b675522fd161382d5ce437e51f0505337a.tar.bz2
[lldb] Support the Python stable C API in PythonString::AsUTF8 (#152599)
This conditionally reimplements PythonString::AsUTF8 using PyUnicode_AsUTF8String instead of PyUnicode_AsUTF8AndSize. PyUnicode_AsUTF8AndSize caches the UTF-8 representation of the string in the Unicode object, which makes it more efficient and ties the lifetime of the data to the Python string. However, it was only added to the Stable API in Python 3.10. Older versions that want to use the Stable API must use PyUnicode_AsUTF8String in combination with ConstString.
Diffstat (limited to 'lldb/scripts/Python/python-wrapper.swig')
0 files changed, 0 insertions, 0 deletions