Author gregory.p.smith
Recipients Erik.Tollerud, amaury.forgeotdarc, eric.araujo, eric.snow, gregory.p.smith, meador.inge, psimons, python-dev, serhiy.storchaka, tomdzk
Date 2020-03-04.23:00:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2020-03-04 23:00:59gregory.p.smithsetrecipients: + 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.smithsetmessageid: <>
2020-03-04 23:00:59gregory.p.smithlinkissue13487 messages
2020-03-04 23:00:59gregory.p.smithcreate