
http://hg.python.org/peps/rev/560454f6cd2f changeset: 3947:560454f6cd2f user: Martin v. Löwis <martin@v.loewis.de> date: Tue Sep 27 23:46:28 2011 +0200 summary: Add character accessor functions, and put representation-independent functions into the stable ABI. files: pep-0393.txt | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pep-0393.txt b/pep-0393.txt --- a/pep-0393.txt +++ b/pep-0393.txt @@ -242,6 +242,8 @@ Character access utility functions: +- PyUnicode_GetLength(o), PyUnicode_ReadChar(o, index), + PyUnicode_WriteChar(o, index, character) - PyUnicode_CopyCharacters(to, to_start, from, from_start, how_many) - PyUnicode_FindChar(str, ch, start, end, direction) @@ -261,14 +263,16 @@ Stable ABI ---------- -None of the functions in this PEP become part of the stable ABI -(PEP 384). +The following functions are added to the stable ABI (PEP 384), as they +are independent of the actual representation of Unicode objects: +PyUnicode_New, PyUnicode_Chr, PyUnicode_GetLength, PyUnicode_ReadChar, +PyUnicode_WriteChar, PyUnicode_Find, PyUnicode_FindChar. GDB Debugging Hooks ------------------- Tools/gdb/libpython.py contains debugging hooks that embed knowledge about the internals of CPython's data types, include PyUnicodeObject -instances. It will need to be slightly updated to track the change. +instances. It has been updated to track the change. Deprecations, Removals, and Incompatibilities --------------------------------------------- -- Repository URL: http://hg.python.org/peps