]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43908: Add Py_TPFLAGS_IMMUTABLETYPE flag (GH-25520)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Wed, 28 Apr 2021 17:02:42 +0000 (19:02 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 17:02:42 +0000 (19:02 +0200)
commit3b52c8d66b25415f09478ab43f93d59a3547dc13
treec403cd3e2e6601ce86b4732085f0836d278964d9
parent3cc481b9de43c234889c8010e7da3af7c0f42319
bpo-43908: Add Py_TPFLAGS_IMMUTABLETYPE flag (GH-25520)

Introduce Py_TPFLAGS_IMMUTABLETYPE flag for immutable type objects, and
modify PyType_Ready() to set it for static types.

Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/c-api/typeobj.rst
Include/object.h
Misc/NEWS.d/next/C API/2021-04-22-10-46-40.bpo-43908.Co3YhZ.rst [new file with mode: 0644]
Objects/typeobject.c