[Python-ideas] RFC: PEP: Add dict.__version__
Victor Stinner
victor.stinner at gmail.com
Sun Jan 10 18:30:12 EST 2016
2016-01-09 14:12 GMT+01:00 Nick Coghlan <ncoghlan at gmail.com>:
> On 9 January 2016 at 19:18, Victor Stinner <victor.stinner at 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
More information about the Python-ideas
mailing list