[docs] [issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

Petr Viktorin report at bugs.python.org
Mon May 28 05:16:46 EDT 2018

Petr Viktorin <encukou at gmail.com> added the comment:

> That's a weak test: if the script fails before calling spec.loader.create_module(), the test also pass. If the function raises an exception but don't crash, the test pass as well.

Marcel added PR 7145 for that -- it wraps things in try/except to catch Python-level exceptions sounds like a good solution to me.


Python tracker <report at bugs.python.org>

More information about the docs mailing list