File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1846,6 +1846,10 @@ New Features
18461846 creating type instances.
18471847 (Contributed by Victor Stinner in :issue:`43916 ` .)
18481848
1849+ * Add a new :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag for creating immutable
1850+ type objects: type attributes cannot be set nor deleted.
1851+ (Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908 ` .)
1852+
18491853Porting to Python 3.10
18501854----------------------
18511855
@@ -1903,6 +1907,12 @@ Porting to Python 3.10
19031907 been included directly, consider including `` Python.h`` instead.
19041908 (Contributed by Nicholas Sim in :issue:`35134 ` )
19051909
1910+ * Use the :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag to create immutable type
1911+ objects. Do not rely on :c:data:`Py_TPFLAGS_HEAPTYPE` to decide if a type
1912+ object is mutable or not ; check if :c:data:`Py_TPFLAGS_IMMUTABLETYPE` is set
1913+ instead.
1914+ (Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908 ` .)
1915+
19061916Deprecated
19071917----------
19081918
You can’t perform that action at this time.
0 commit comments