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.

Author vstinner
Recipients Rhamphoryncus, gregory.p.smith, vstinner
Date 2021-09-26.21:17:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632691033.11.0.0393485142313.issue1736792@roundup.psfhosted.org>
In-reply-to
Content
> As I first mentioned in my post[1] on comp.lang.python, it seems possible to modify a dict while a lookup is ongoing, without causing the lookup to restart.

That's a bad practice. Python dict raises an exception in some cases: RuntimeError("dict mutated during update").

Detecting any change during a lookup would slow down, whereas dict performance is key in Python performance in general, since dict is used everywhere for Python namespaces.

I close the issue as "wont fix".
History
Date User Action Args
2021-09-26 21:17:13vstinnersetrecipients: + vstinner, gregory.p.smith, Rhamphoryncus
2021-09-26 21:17:13vstinnersetmessageid: <1632691033.11.0.0393485142313.issue1736792@roundup.psfhosted.org>
2021-09-26 21:17:13vstinnerlinkissue1736792 messages
2021-09-26 21:17:13vstinnercreate