[Python-3000] Abilities / Interfaces

Andrew Koenig ark-mlist at att.net
Wed Nov 22 17:41:10 CET 2006


> What does it add to have to declare a class as being "Iterable", if it
> already implements __iter__?  What does the notion of "Iterable" add to
> the execution *or* understanding of the code?

Let's suppose for the sake of argument that declaring a class as being
"Iterable" adds nothing.  What does that say about whether the ability to
declare other abilities is useful?  I think it doesn't say much.




More information about the Python-3000 mailing list