➜

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.

作者 vstinner
收信人 eric.snow, ncoghlan, serhiy.storchaka, vstinner
日期 2017-03-23.17:49:34
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1490291374.65.0.961951587868.issue29881@psf.upfronthosting.co.za>
In-reply-to
内容
I modified more modules to use the new API. I'm not sure that using the API in modules is safe.

It's safe to use the API in functions which begins with trying to initialize the variable. In such case, if the variable is cleared, calling the function later initialize again the variable and it's fine.

When for module variables only initialized when the module is initialized, there is a risk that a module function tries to access a variable which has been cleared previously during Python shutdown.

See for example changes in the _datetime module.
历史
日期 用户 动作 参数
2017-03-23 17:49:34vstinner修改recipients: + vstinner, ncoghlan, eric.snow, serhiy.storchaka
2017-03-23 17:49:34vstinner修改messageid: <1490291374.65.0.961951587868.issue29881@psf.upfronthosting.co.za>
2017-03-23 17:49:34vstinner链接issue29881 messages
2017-03-23 17:49:34vstinner创建