mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Add PEP 573 additions to What's New (GH-21374) (GH-21831)
(cherry picked from commit af3a6a8cae
)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
a0b57b3317
commit
2146e516ec
1 changed files with 7 additions and 0 deletions
|
@ -1030,6 +1030,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`.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue