<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 7, 2014 at 8:54 PM, <span dir="ltr"><<a href="mailto:random832@fastmail.us" target="_blank">random832@fastmail.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Oct 7, 2014, at 21:09, Stephen J. Turnbull wrote:<br>
> But this requires a comparison of the two orders, and "ordering<br>
> relation" is not a type available in the stdlib.<br>
<br>
</span>This has nothing to do with comparable types - the only comparison being<br>
done on the members themselves is equality.<br>
<br>
i.e. if the main sequence is [5, 1, 3, 2, 4], it's true for [5, 2, 4]<br>
but not [5, 4, 1].<br>
<br>
Think of it as being the question of whether "51234" matches "5.*2.*4"<br>
(it does) or "5.*4.*1" (it does not). But if the argument is a set<br>
instead he wants it to be whether it's a subset rather than a<br>
subsequence.<br clear="all"></blockquote><div><br></div><div>This is the first understandable description of Ram's use case that I have seen. Thank you! <br></div></div><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div></div>