Fred L. Drake, Jr. added the comment:

> ref objects behave differently: they inherit their referent's hash
> value when alive, and remember it.  proxy objects could be made to
> behave the same way.

They could, yes, but that would break the proxy behavior, and the hash <--> 
equality behavior for mutable objects.

In particular, mutable objects can become equal; if the hashes were computed 
for the proxies before that happened, the hashes would be inappropriate later.  
That's pretty important.

----------

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

Reply via email to