[issue46925] Replace key if not identical to old key in dict

Jelle Zijlstra report at bugs.python.org
Fri Mar 4 22:31:28 EST 2022


Jelle Zijlstra <jelle.zijlstra at gmail.com> added the comment:

As @methane also said on the PR, this is a backward compatibility break and we can't just change the behavior. I'd be opposed to a change here: the proposed behavior isn't clearly better than the existing behavior (sometimes you want one behavior, sometimes another), and it will be difficult to find and adjust code that relies on the existing behavior.

----------
nosy: +Jelle Zijlstra

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46925>
_______________________________________


More information about the Python-bugs-list mailing list