[issue31254] WeakKeyDictionary/Mapping doesn't call __missing__

Antony Lee report at bugs.python.org
Thu Aug 24 21:31:42 EDT 2017


Antony Lee added the comment:

The original example did not cover the use case and was only there to show the current behavior.  The real use case is more something like

obj = (get obj as argument to function, caller has a hard reference to it)
uid = d[obj]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31254>
_______________________________________


More information about the Python-bugs-list mailing list