summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-09 15:22:54 (GMT)
committerGitHub <noreply@github.com>2022-08-09 15:22:54 (GMT)
commitc96b26cb0639583731c78b7202ea2b8507ff1127 (patch)
tree71783248cdc735dfd3f395cbfc6417affaa8ebad /Doc/whatsnew
parent2d36d5e2d7d2165f37c189187d985bc0794e5dba (diff)
downloadcpython-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.rst4
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
=============