[Python-checkins] Add PEP 573 additions to What's New (GH-21374)

Petr Viktorin webhook-mailer at python.org
Tue Aug 11 12:16:26 EDT 2020

commit: af3a6a8caefc2b202c831ab908677c1a4371cc27
branch: master
author: Petr Viktorin <encukou at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-08-11T18:15:57+02:00

Add PEP 573 additions to What's New (GH-21374)

M Doc/whatsnew/3.9.rst

diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index db380bc1cdfa4..be7406e13c2cd 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -1024,6 +1024,13 @@ C API Changes
 New Features
+* :pep:`573`: Add :c:func:`PyType_FromModuleAndSpec` to associate
+  a module with a class; :c:func:`PyType_GetModule` and
+  :c:func:`PyType_GetModuleState` to retrieve the module and its state; and
+  :c:data:`PyCMethod` and :c:data:`METH_METHOD` to allow a method to
+  access the class it was defined in.
+  (Contributed by Marcel Plch and Petr Viktorin in :issue:`38787`.)
 * Add :c:func:`PyFrame_GetCode` function: get a frame code.
   Add :c:func:`PyFrame_GetBack` function: get the frame next outer frame.
   (Contributed by Victor Stinner in :issue:`40421`.)

More information about the Python-checkins mailing list