[issue44523] weakref.proxy documentation might be outdated

Neil Schemenauer report at bugs.python.org
Tue Jun 29 13:16:08 EDT 2021


Neil Schemenauer <nas-python at arctrix.com> added the comment:

It seems to me the old behaviour (don't forward hash) was done for good reasons.  If the referent might go away, it is not valid to use it as a dict key since the hash and eq result changes.  If it can't go away, what reason is there to use a weakref and not a direct reference?

----------

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


More information about the Python-bugs-list mailing list