Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

We should consider making this change just about everywhere in the standard 
library.  Besides avoiding a race condition, running a for loop over 
`d.copy().items()` is more memory efficient and possibly faster than a for loop 
over `list(d.items())`.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40327>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to