Issue #27782: Fix m_methods handling in multiphase init

Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions
to instances of non-module types returned from ``Py_create_mod``.

Patch by Xiang Zhang.
This commit is contained in:
Nick Coghlan 2016-08-21 17:41:56 +10:00
parent 9c8aa9bffe
commit 8682f578c1
7 changed files with 83 additions and 32 deletions

View file

@ -77,7 +77,7 @@ typedef struct PyModuleDef{
traverseproc m_traverse;
inquiry m_clear;
freefunc m_free;
}PyModuleDef;
} PyModuleDef;
#ifdef __cplusplus
}