Skip to content

Commit af3a6a8

Browse files
authored
Add PEP 573 additions to What's New (GH-21374)
1 parent e3c971c commit af3a6a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/whatsnew/3.9.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,13 @@ C API Changes
10241024
New Features
10251025
------------
10261026

1027+
* :pep:`573`: Add :c:func:`PyType_FromModuleAndSpec` to associate
1028+
a module with a class; :c:func:`PyType_GetModule` and
1029+
:c:func:`PyType_GetModuleState` to retrieve the module and its state; and
1030+
:c:data:`PyCMethod` and :c:data:`METH_METHOD` to allow a method to
1031+
access the class it was defined in.
1032+
(Contributed by Marcel Plch and Petr Viktorin in :issue:`38787`.)
1033+
10271034
* Add :c:func:`PyFrame_GetCode` function: get a frame code.
10281035
Add :c:func:`PyFrame_GetBack` function: get the frame next outer frame.
10291036
(Contributed by Victor Stinner in :issue:`40421`.)

0 commit comments

Comments
 (0)