Gareth Rees added the comment:
Not just Iterator, but Container, Hashable, Iterable, and Sized too!
>>> import weakref
>>> class C: pass
>>> o = C()
>>> w = weakref.proxy(o)
>>> from collections.abc import *
>>> isinstance(w, Container)
True
>>> isinstance(w, Hashable)
True
>>> isinstance(w, Iterable)
True
>>> isinstance(w, Sized)
True
----------
nosy: +Gareth.Rees
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24067>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com