diff options
author | Petr Viktorin <encukou@gmail.com> | 2020-11-03 21:27:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 21:27:12 (GMT) |
commit | 57aaaa8d2a43bddffeca4ead5632ce6652945cc0 (patch) | |
tree | 30d87542dadc05d27d170ae279cb80c82855c9fc /Modules/clinic | |
parent | a603c3d371cda76bae75836faf068e146eb6ab76 (diff) | |
download | cpython-57aaaa8d2a43bddffeca4ead5632ce6652945cc0.zip cpython-57aaaa8d2a43bddffeca4ead5632ce6652945cc0.tar.gz cpython-57aaaa8d2a43bddffeca4ead5632ce6652945cc0.tar.bz2 |
Add _PyType_GetModuleByDef (GH-22835)
See https://mail.python.org/archives/list/capi-sig@python.org/thread/T3P2QNLNLBRFHWSKYSTPMVEIL2EEKFJU/ for discussion.
https://bugs.python.org/issue42100
Diffstat (limited to 'Modules/clinic')
-rw-r--r-- | Modules/clinic/_testmultiphase.c.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/clinic/_testmultiphase.c.h b/Modules/clinic/_testmultiphase.c.h index 0d38c23..55f934b 100644 --- a/Modules/clinic/_testmultiphase.c.h +++ b/Modules/clinic/_testmultiphase.c.h @@ -6,7 +6,10 @@ PyDoc_STRVAR(_testmultiphase_StateAccessType_get_defining_module__doc__, "get_defining_module($self, /)\n" "--\n" "\n" -"Return the module of the defining class."); +"Return the module of the defining class.\n" +"\n" +"Also tests that result of _PyType_GetModuleByDef matches defining_class\'s\n" +"module."); #define _TESTMULTIPHASE_STATEACCESSTYPE_GET_DEFINING_MODULE_METHODDEF \ {"get_defining_module", (PyCFunction)(void(*)(void))_testmultiphase_StateAccessType_get_defining_module, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _testmultiphase_StateAccessType_get_defining_module__doc__}, @@ -98,4 +101,4 @@ _testmultiphase_StateAccessType_get_count(StateAccessTypeObject *self, PyTypeObj exit: return return_value; } -/*[clinic end generated code: output=39eea487e94e7f5d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f01137bb3b373e14 input=a9049054013a1b77]*/ |