Is there a Pythonic way of determining if a tuple is a slice of another tuple (and not only a subset)?
For example, if I have the following tuples:
t1 = (2, 3, 4)
t2 = (1, 2, 3, 4, 5)
t3 = (3, 4, 2, 5)
then t1 is a slice of t2 but only a subset of t3. I'm looking for something like "t1 in t2". Window-based shifting of one tuple along another one is "implementable" but there may be a more efficient way that I don't know.