Re: [Python-Dev] Is explicit registration of Iterators needed?

2016-10-07 Thread Ivan Levkivskyi
On 7 October 2016 at 17:08, Guido van Rossum wrote: > On Fri, Oct 7, 2016 at 7:47 AM, Serhiy Storchaka > wrote: > > On 07.10.16 17:37, Guido van Rossum wrote: > >> > >> On Fri, Oct 7, 2016 at 6:36 AM, Serhiy Storchaka > >> wrote: >

[Python-Dev] Summary of Python tracker Issues

2016-10-07 Thread Python tracker
ACTIVITY SUMMARY (2016-09-30 - 2016-10-07) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open5517 ( -2) closed 34624 (+69) total 40141 (+67) Open issues

Re: [Python-Dev] Is explicit registration of Iterators needed?

2016-10-07 Thread Guido van Rossum
On Fri, Oct 7, 2016 at 7:47 AM, Serhiy Storchaka wrote: > On 07.10.16 17:37, Guido van Rossum wrote: >> >> On Fri, Oct 7, 2016 at 6:36 AM, Serhiy Storchaka >> wrote: >>> >>> A number of builtin iterator classes (but not all builtin iterator >>> classes)

Re: [Python-Dev] Is explicit registration of Iterators needed?

2016-10-07 Thread Serhiy Storchaka
On 07.10.16 17:37, Guido van Rossum wrote: On Fri, Oct 7, 2016 at 6:36 AM, Serhiy Storchaka wrote: A number of builtin iterator classes (but not all builtin iterator classes) are registered with the Iterator ABC in Lib/_collections_abc.py. But isinstance(it, Iterable)

Re: [Python-Dev] Is explicit registration of Iterators needed?

2016-10-07 Thread Guido van Rossum
On Fri, Oct 7, 2016 at 6:36 AM, Serhiy Storchaka wrote: > A number of builtin iterator classes (but not all builtin iterator classes) > are registered with the Iterator ABC in Lib/_collections_abc.py. But > isinstance(it, Iterable) check works without explicit registration,

[Python-Dev] Is explicit registration of Iterators needed?

2016-10-07 Thread Serhiy Storchaka
A number of builtin iterator classes (but not all builtin iterator classes) are registered with the Iterator ABC in Lib/_collections_abc.py. But isinstance(it, Iterable) check works without explicit registration, because Iterable has __subclasshook__ that checks iterator methods. Is there a