Comparing strings from the back?
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Fri Sep 7 00:07:23 EDT 2012
On Fri, 07 Sep 2012 00:39:33 +1000, Chris Angelico wrote:
> On Thu, Sep 6, 2012 at 11:37 PM, Johannes Bauer <dfnsonfsduifb at gmx.de>
> wrote:
>> Not in my original post. If you read it again, you will clearly see
>> that I was talking about purely random strings. And since you like to
>> nitpick, I'll clarify further: I'm talking about bitstrings in which
>> every bit of every character has the same probability of occurence,
>> 50%.
>
> That sort of string isn't a normal thing to be comparing, though.
>
> Here's an idea. Someone who's doing a lot of arguing in this thread
> should take Python, find the string comparison routine, and hack in some
> statistics-gathering. Then run *real code* on it.
Where's the fun in that?
:-P
--
Steven
More information about the Python-list
mailing list