]> granicus.if.org Git - python/commit
bpo-32374: m_traverse may be called with m_state=NULL (GH-5140)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Mar 2018 06:03:56 +0000 (23:03 -0700)
committerGitHub <noreply@github.com>
Sat, 17 Mar 2018 06:03:56 +0000 (23:03 -0700)
commit136905fffd5f77395f80e3409630c11756b5469c
tree6ee84b39fa80114b5eba4d0a7a7cfbd1d560eaea
parent6e65e4462692cbf4461c307a411af7cf40a1ca4a
bpo-32374:  m_traverse may be called with m_state=NULL (GH-5140)

Multi-phase initialized modules allow m_traverse to be called while the
module is still being initialized, so module authors may need to account
for that.
(cherry picked from commit c2b0b12d1a137ada1023ab7c10b8d9a0249d95f9)

Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com>
Doc/c-api/module.rst
Lib/test/test_importlib/extension/test_loader.py
Misc/NEWS.d/next/C API/2018-01-09-17-03-54.bpo-32374.SwwLoz.rst [new file with mode: 0644]
Modules/_testmultiphase.c
Objects/moduleobject.c