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 @@ -1838,6 +1838,10 @@ New Features
1838
1838
creating type instances.
1839
1839
(Contributed by Victor Stinner in :issue:`43916 ` .)
1840
1840
1841
+ * Add a new :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag for creating immutable
1842
+ type objects: type attributes cannot be set nor deleted.
1843
+ (Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908 ` .)
1844
+
1841
1845
Porting to Python 3.10
1842
1846
----------------------
1843
1847
@@ -1895,6 +1899,12 @@ Porting to Python 3.10
1895
1899
been included directly, consider including `` Python.h`` instead.
1896
1900
(Contributed by Nicholas Sim in :issue:`35134 ` )
1897
1901
1902
+ * Use the :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag to create immutable type
1903
+ objects. Do not rely on :c:data:`Py_TPFLAGS_HEAPTYPE` to decide if a type
1904
+ object is mutable or not ; check if :c:data:`Py_TPFLAGS_IMMUTABLETYPE` is set
1905
+ instead.
1906
+ (Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908 ` .)
1907
+
1898
1908
Deprecated
1899
1909
----------
1900
1910
You can’t perform that action at this time.
0 commit comments