New submission from Sebastian Linke: With the attached patch I propose to add a new function to the "collections" module. It is meant to be used for determining whether a given subsequence is part of a particular sequence (with respect to the ordering of the subsequence).
Doing this in pure Python (using the CPython interpreter) is relatively slow. So I did the implementation in C. ---------- components: Library (Lib) files: has_subsequence.patch keywords: patch messages: 256633 nosy: seblin priority: normal severity: normal status: open title: Check for subsequence inside a sequence type: enhancement versions: Python 3.6 Added file: http://bugs.python.org/file41342/has_subsequence.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25898> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com