]> 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:29:30 +0000 (23:29 -0700)
committerGitHub <noreply@github.com>
Sat, 17 Mar 2018 06:29:30 +0000 (23:29 -0700)
commit1da0479f687613a43620430616f4db87e2ed4423
tree03e738b46a78d64ddc3b269f89c4b3406d59a27e
parenta954919788f2130076e4f9dd91e9eccf69540f7a
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