
Jan. 10, 2016
11:30 p.m.
2016-01-09 14:12 GMT+01:00 Nick Coghlan <ncoghlan@gmail.com>:
On 9 January 2016 at 19:18, Victor Stinner <victor.stinner@gmail.com> wrote:
It would be nice to detect keys mutation while iteration on dict.keys(), but it would also be be nice to detect values mutation while iterating on dict.values() and dict.items(). No?
No, because mutating values as you go while iterating over a dictionary is perfectly legal: (...)
Oh you're right. I removed the reference to the issue #19332 from the PEP, since the PEP doesn't help. Too bad. Victor