File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1712,6 +1712,10 @@ New Features
1712
1712
creating type instances.
1713
1713
(Contributed by Victor Stinner in :issue:`43916 ` .)
1714
1714
1715
+ * Add a new :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag for creating immutable
1716
+ type objects: type attributes cannot be set nor deleted.
1717
+ (Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908 ` .)
1718
+
1715
1719
Porting to Python 3.10
1716
1720
----------------------
1717
1721
@@ -1769,6 +1773,12 @@ Porting to Python 3.10
1769
1773
been included directly, consider including `` Python.h`` instead.
1770
1774
(Contributed by Nicholas Sim in :issue:`35134 ` )
1771
1775
1776
+ * Use the :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag to create immutable type
1777
+ objects. Do not rely on :c:data:`Py_TPFLAGS_HEAPTYPE` to decide if a type
1778
+ object is mutable or not ; check for :c:data:`Py_TPFLAGS_IMMUTABLETYPE`
1779
+ instead.
1780
+ (Contributed by Victor Stinner and Erlend E. Aasland in :issue:`43908 ` .)
1781
+
1772
1782
Deprecated
1773
1783
----------
1774
1784
You can’t perform that action at this time.
0 commit comments