On Sun, Aug 21, 2016, at 02:53, Michael Selik wrote:
> For that to make sense, Iterable should be a parent of C, or C should
> be a subclass of something registered as an Iterable. Otherwise it'd
> be creating a general recommendation to say ``__iter__ = None`` on
> every non-Iterable class, which would be silly.

Er, we're talking about defining it on every non-iterable class *that
defines __getitem__* (such as str in this thought experiment)
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to