Eric Lippert added the comment:
If it were possible that the interpreter iterating over a dictionary could
cause the dictionary to change size then I suspect that this would be a rich
source of bugs to mine. :-)
It would be great if we could make it a documented, enforced invariant that
Change by Eric Lippert :
--
keywords: +patch
pull_requests: +8479
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34551>
___
___
Py
New submission from Eric Lippert :
In _PyFunction_FastCallDict we have local nk assigned to be the size of a
dictionary, and then local i is assigned to twice the size of the same
dictionary, and then nk is assigned to half of i, which it already is:
nk = (kwargs != NULL