]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #27782: Fix m_methods handling in multiphase init
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 21 Aug 2016 07:41:56 +0000 (17:41 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 21 Aug 2016 07:41:56 +0000 (17:41 +1000)
commit8682f578c1c8fd0486c886b001729907a5409a9f
tree2f54886ef578b7faf94e26fe32e24fbb258b896a
parent9c8aa9bffe755fe6126dc72dfd037c6b20e65906
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.
Doc/c-api/module.rst
Include/moduleobject.h
Lib/test/test_importlib/extension/test_loader.py
Misc/ACKS
Misc/NEWS
Modules/_testmultiphase.c
Objects/moduleobject.c