diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-08-11 16:34:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 16:34:20 (GMT) |
commit | 2146e516ec48d771ad207dc53bd5fd280d7c3110 (patch) | |
tree | 8f99a77fefa1203a79d76bda14a3057d984eac15 | |
parent | a0b57b3317d6653255415af5228c94485aa57a0d (diff) | |
download | cpython-2146e516ec48d771ad207dc53bd5fd280d7c3110.zip cpython-2146e516ec48d771ad207dc53bd5fd280d7c3110.tar.gz cpython-2146e516ec48d771ad207dc53bd5fd280d7c3110.tar.bz2 |
Add PEP 573 additions to What's New (GH-21374) (GH-21831)
(cherry picked from commit af3a6a8caefc2b202c831ab908677c1a4371cc27)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
-rw-r--r-- | Doc/whatsnew/3.9.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index a5894ef..2b7cbaa 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -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`.) |