[Python-ideas] proposed sequence method: index_subseq()
Jess Austin
jess.austin at gmail.com
Tue Aug 27 22:11:47 CEST 2013
On Tue, Aug 27, 2013 at 12:34 PM, Steven D'Aprano <steve at pearwood.info>wrote:
> On 28/08/13 00:57, Jess Austin wrote:
>
>>
>> but a less naive implementation would be more useful.
Ummm, OK. Tal Einat already pointed me to KMP.
> [This listing omits the monkeypatching into the list and tuple builtins.]
>>
>
> Okay, now I'm curious. Unless you're talking about patching the Python
> compiler, how on earth are you monkey-patching *into* list and tuple?
That was kind of a little joke. I had a class called "list" which inherited
from "real" list and a mixin, and I called that instead of using the "[]"
literal.
+0.5
Like I replied to Tal, his message inspired a re-think on my part. I won't
be posting any of this to the tracker.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130827/e4f114d8/attachment.html>
More information about the Python-ideas
mailing list