Changes from David Malcolm: Clarify representation of

optional fields; add gdb section.
This commit is contained in:
Martin v. Löwis 2011-01-27 21:16:50 +00:00
parent 1259b356bc
commit 55c04efb71
1 changed files with 10 additions and 1 deletions

View File

@ -83,7 +83,9 @@ These fields have the following interpretations:
All three representations are optional, although the str form is
considered the canonical representation which can be absent only
while the string is being created.
while the string is being created. If the representation is absent,
the pointer is NULL, and the corresponding length field may contain
arbitrary data.
The Py_UNICODE type is still supported but deprecated. It is always
defined as a typedef for wchar_t, so the wstr representation can double
@ -165,6 +167,13 @@ Stable ABI
None of the functions in this PEP become part of the stable ABI.
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.
Copyright
=========