[issue24067] Weakproxy is an instance of collections.Iterator

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


Fred L. Drake, Jr. added the comment:

Clearly I've been away from this code for a long time.

The hash support for ref objects is definitely a very special case, only intended to support WeakKeyDictionary.  We that class implemented in C, we'd probably want the hash support for refs not to be exposed.

You've convinced me hashability for proxies isn't desirable.  Let's stick with the status quo on this.

----------

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


More information about the Python-bugs-list mailing list