[Python-ideas] issubclass(collections.OrderedDict, collections.Sequence)

Ram Rachum ram at rachum.com
Mon Oct 6 00:07:59 CEST 2014


Yep, Ed said exactly what I meant.
On Oct 6, 2014 1:05 AM, "Ed Kellett" <edk141 at gmail.com> wrote:

> I think the definition of ordered here would be that the container's
> iteration order carries any meaning (compare: dicts and sets' having
> iteration order is an incidental effect of one thing having to be
> iterated out first, and one shouldn't depend on that order; lists and
> ordereddicts' having iteration order is deliberate).
>
> I don't think there's a mathematical definition possible - it's just a
> question of whether whoever wrote the class left the iteration order
> documented or unspecified.
>
>
> edk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141006/51f98fe9/attachment.html>


More information about the Python-ideas mailing list