[Python-ideas] Introduce collections.Reiterable
mistersheik at gmail.com
Sat Sep 21 06:00:14 CEST 2013
If someone allows their class to fail the standardized test for
Iterable/Reiterable/Sequence, that class doesn't deserve to be treated as
one. (Anyone can register their class as a subclass of the ABCs, or more
simply inherit from one.)
On Fri, Sep 20, 2013 at 11:01 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 09/20/2013 05:40 PM, Neil Girdhar wrote:
>> [...] Each test carries with it a set of promises: it contains a promise
>> about the general behavior of
>> the class, and a promise as to what other class methods will be available.
>> [...] Tests are done using isinstance(), and the presence of a
>> particular ABC means that the test has passed.
> So if the test passes, you know you're good. Those paragraphs said
> nothing about the meaning of a failing test.
> Python-ideas mailing list
> Python-ideas at python.org
> --- You received this message because you are subscribed to a topic in the
> Google Groups "python-ideas" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/**
> To unsubscribe from this group and all its topics, send an email to
> python-ideas+unsubscribe@**googlegroups.com<python-ideas%2Bunsubscribe at googlegroups.com>
> For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas