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.

作者 gregory.p.smith
收信人 Erik.Tollerud, amaury.forgeotdarc, eric.araujo, eric.snow, gregory.p.smith, meador.inge, psimons, python-dev, serhiy.storchaka, tomdzk
日期 2020-03-04.23:00:59
SpamBayes Score -1.0
Marked as misclassified
Message-id <1583362859.53.0.304421114261.issue13487@roundup.psfhosted.org>
In-reply-to
内容
Serhiy: Why is dict.copy() not thread safe?

if what you say of list(dict) being safe, iterating over that and looking up the keys would work.  But all of this is entirely non-obvious to the reader of the code.  all of these _look_ like they should be safe.

We should make dict.copy() safe and document the guarantee as such as that one could at least be explained when used for that purpose.
历史
日期 用户 动作 参数
2020-03-04 23:00:59gregory.p.smith修改recipients: + gregory.p.smith, amaury.forgeotdarc, eric.araujo, meador.inge, python-dev, eric.snow, Erik.Tollerud, serhiy.storchaka, psimons, tomdzk
2020-03-04 23:00:59gregory.p.smith修改messageid: <1583362859.53.0.304421114261.issue13487@roundup.psfhosted.org>
2020-03-04 23:00:59gregory.p.smith链接issue13487 messages
2020-03-04 23:00:59gregory.p.smith创建