[issue24067] Weakproxy is an instance of collections.Iterator

Fred L. Drake, Jr. report at bugs.python.org
Tue Apr 28 14:37:16 CEST 2015


Fred L. Drake, Jr. added the comment:

I don't see any reason for proxy objects to be less hashable than ref objects.

As for the p == p case, where the referent has expired, returning True if p is p seems acceptable (along with False inequalities, and True for other comparisons allowing equality), but anything beyond that seems unwise.  Not sure whether that would really be enough to help real use cases.

----------

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


More information about the Python-bugs-list mailing list