[issue46925] Document dict behavior when setting equal but not identical key

2022-03-07 Thread Jarek Potiuk
Jarek Potiuk added the comment: Yeah. Sounds like adding docs is indeed needed :) -- ___ Python tracker <https://bugs.python.org/issue46925> ___ ___ Python-bug

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

2022-03-05 Thread Jarek Potiuk
Jarek Potiuk added the comment: How about if we make PR instead to the documentation about this behaviour? I think this behaviour is a little surprising (you need to know the internals of how WeakKeyDict keys are constructed and checked) and while I understand you do not want breaking