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
1846
1846
creating type instances.
1847
1847
(Contributed by Victor Stinner in :issue:`43916 ` .)
1848
1848
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
+
1849
1853
Porting to Python 3.10
1850
1854
----------------------
1851
1855
@@ -1903,6 +1907,12 @@ Porting to Python 3.10
1903
1907
been included directly, consider including `` Python.h`` instead.
1904
1908
(Contributed by Nicholas Sim in :issue:`35134 ` )
1905
1909
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
+
1906
1916
Deprecated
1907
1917
----------
1908
1918
You can’t perform that action at this time.
0 commit comments