This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fdrake
Recipients benjamin.peterson, ereuveni, fdrake, gdr@garethrees.org, gvanrossum, pitrou
Date 2015-04-28.14:50:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430232636.8.0.409401722752.issue24067@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2015-04-28 14:50:36fdrakesetrecipients: + fdrake, gvanrossum, pitrou, benjamin.peterson, gdr@garethrees.org, ereuveni
2015-04-28 14:50:36fdrakesetmessageid: <1430232636.8.0.409401722752.issue24067@psf.upfronthosting.co.za>
2015-04-28 14:50:36fdrakelinkissue24067 messages
2015-04-28 14:50:36fdrakecreate