[Python-ideas] issubclass(collections.OrderedDict, collections.Sequence)
Ram Rachum
ram at rachum.com
Tue Oct 7 22:31:23 CEST 2014
Yep, this is what I meant.
On Tue, Oct 7, 2014 at 11:28 PM, <random832 at fastmail.us> wrote:
> On Tue, Oct 7, 2014, at 16:20, Guido van Rossum wrote:
> > But your use case (as I understand it) requires that the iteration order
> > is
> > the same as the canonical order that your app defines.
>
> No, that is the condition he is testing for.
>
> i.e. (pseudo-code, and probably not the order in which these tests would
> normally take place)
>
> if the elements of object A are a subset those of list B:
> if object A has a meaningful order:
> if the order of object A's elements is the same as that of list
> B:
> return True
> else:
> return False
> else:
> return True
> else:
> return False
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141007/e23c3635/attachment.html>
More information about the Python-ideas
mailing list