summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-04-28 17:02:42 (GMT)
committerGitHub <noreply@github.com>2021-04-28 17:02:42 (GMT)
commit3b52c8d66b25415f09478ab43f93d59a3547dc13 (patch)
treec403cd3e2e6601ce86b4732085f0836d278964d9 /Misc
parent3cc481b9de43c234889c8010e7da3af7c0f42319 (diff)
downloadcpython-3b52c8d66b25415f09478ab43f93d59a3547dc13.zip
cpython-3b52c8d66b25415f09478ab43f93d59a3547dc13.tar.gz
cpython-3b52c8d66b25415f09478ab43f93d59a3547dc13.tar.bz2
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>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2021-04-22-10-46-40.bpo-43908.Co3YhZ.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-04-22-10-46-40.bpo-43908.Co3YhZ.rst b/Misc/NEWS.d/next/C API/2021-04-22-10-46-40.bpo-43908.Co3YhZ.rst
new file mode 100644
index 0000000..0413c20
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-04-22-10-46-40.bpo-43908.Co3YhZ.rst
@@ -0,0 +1,3 @@
+Introduce :const:`Py_TPFLAGS_IMMUTABLETYPE` flag for immutable type objects, and
+modify :c:func:`PyType_Ready` to set it for static types. Patch by
+Erlend E. Aasland.