diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-08-09 15:22:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 15:22:54 (GMT) |
commit | c96b26cb0639583731c78b7202ea2b8507ff1127 (patch) | |
tree | 71783248cdc735dfd3f395cbfc6417affaa8ebad /Doc/whatsnew | |
parent | 2d36d5e2d7d2165f37c189187d985bc0794e5dba (diff) | |
download | cpython-c96b26cb0639583731c78b7202ea2b8507ff1127.zip cpython-c96b26cb0639583731c78b7202ea2b8507ff1127.tar.gz cpython-c96b26cb0639583731c78b7202ea2b8507ff1127.tar.bz2 |
GH-92678: Document that you shouldn't be doing your own dictionary offset calculations. (GH-95598) (GH-95821)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Mark Shannon <mark@hotpy.org>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 3ea3fa6..a36564a 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1549,6 +1549,10 @@ Changes in the Python API :func:`compile` and other related functions. If invalid positions are detected, a :exc:`ValueError` will be raised. (Contributed by Pablo Galindo in :gh:`93351`) +* :c:member:`~PyTypeObject.tp_dictoffset` should be treated as write-only. + It can be set to describe C extension clases to the VM, but should be regarded + as meaningless when read. To get the pointer to the object's dictionary call + :c:func:`PyObject_GenericGetDict` instead. Build Changes ============= |