Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 161d131

Browse files
encukouSeth Sims
authored and
Seth Sims
committedOct 18, 2020
Add PEP 573 additions to What's New (pythonGH-21374)
1 parent f721b27 commit 161d131

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎Doc/whatsnew/3.9.rst

+7
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)
Please sign in to comment.