diff options
author | Mark Shannon <mark@hotpy.org> | 2022-08-09 13:26:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 13:26:37 (GMT) |
commit | 8d37c62c2a2579ae7839ecaf8351e862f2ecc9bb (patch) | |
tree | 17dfb0a52cdeb4da979d2b43fbe5c4beee832a4f /Doc/whatsnew/3.11.rst | |
parent | eb81c1aea16914347919745e843c982ed831a9fb (diff) | |
download | cpython-8d37c62c2a2579ae7839ecaf8351e862f2ecc9bb.zip cpython-8d37c62c2a2579ae7839ecaf8351e862f2ecc9bb.tar.gz cpython-8d37c62c2a2579ae7839ecaf8351e862f2ecc9bb.tar.bz2 |
GH-92678: Document that you shouldn't be doing your own dictionary offset calculations. (GH-95598)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-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 88f62bc..39f1dab 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1544,6 +1544,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 ============= |