➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 Dormouse759
收信人 Dormouse759, chn, eric.snow, grahamd, loewis, ncoghlan, petr.viktorin, pitrou, python-dev, r.david.murray, terry.reedy
日期 2017-12-11.16:09:05
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1513008545.3.0.213398074469.issue6531@psf.upfronthosting.co.za>
In-reply-to
内容
> At a guess, the problem is because in atexit_callfuncs():
> 
>    module = PyState_FindModule(&atexitmodule);
>    if (module == NULL)
>        return;

In #31901, I solved this problem by getiing rid of PyState_FindModule in the atexit code, using module state and PEP-489 multiphase initialization.

This needed some changes in the pystate and pylifecycle code, so the specific interpreter has a reference to its own atexit module. This way, Py_EndInterpreter() is able to call the callbacks for the given interpreter.

See: https://github.com/python/cpython/pull/4611
历史
日期 用户 动作 参数
2017-12-11 16:09:05Dormouse759修改recipients: + Dormouse759, loewis, terry.reedy, ncoghlan, pitrou, grahamd, r.david.murray, petr.viktorin, python-dev, eric.snow, chn
2017-12-11 16:09:05Dormouse759修改messageid: <1513008545.3.0.213398074469.issue6531@psf.upfronthosting.co.za>
2017-12-11 16:09:05Dormouse759链接issue6531 messages
2017-12-11 16:09:05Dormouse759创建