]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105227: Add PyType_GetDict() (GH-105747) (#106600)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 10 Jul 2023 17:12:15 +0000 (10:12 -0700)
committerGitHub <noreply@github.com>
Mon, 10 Jul 2023 17:12:15 +0000 (17:12 +0000)
commit41057b2ffeb5a8cb492e37e5503ab76ed1a3082d
treec59a7fc218fccc6dcc1607bef0d3302f4801486c
parent0481b805d6631063887fcbcc27684aa8a2576fae
[3.12] gh-105227: Add PyType_GetDict() (GH-105747) (#106600)

gh-105227: Add PyType_GetDict() (GH-105747)

This compensates for static builtin types having `tp_dict` set to `NULL`.

(cherry picked from commit a840806d338805fe74a9de01081d30da7605a29f)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Doc/c-api/type.rst
Doc/c-api/typeobj.rst
Include/cpython/object.h
Misc/NEWS.d/next/C API/2023-06-13-14-24-55.gh-issue-105227.HDL9aF.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Objects/typeobject.c