Raymond Hettinger added the comment:

For WeakKeyDictionary, I suspect that adding a __missing__() call would make 
the API more tricky and would likely cause more problems than it solves.

Without a compelling use case, my recommendation would be to leave it alone.  
(FWIW, all of the weak reference data structures have a long history of bugs, 
it seems that this is difficult to get right).

----------
nosy: +rhettinger
type:  -> enhancement
versions:  -Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31254>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to