[issue24067] Weakproxy is an instance of collections.Iterator

Antoine Pitrou report at bugs.python.org
Tue Apr 28 13:50:31 CEST 2015


Antoine Pitrou added the comment:

Still, weakref.ref objects are hashable, so I don't understand why weakref.proxy would be different.

Hashability of weakref.ref has been added in 29aa832b8787, to support weak dictionaries. See issue403985. It simply wasn't discussed whether to also add hashability to proxy objects.

----------

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


More information about the Python-bugs-list mailing list