Author kaashif
Recipients kaashif
Date 2009-08-24.20:48:19
SpamBayes Score 0.00143875
Marked as misclassified No
Message-id <1251147558.19.0.488929549089.issue6778@psf.upfronthosting.co.za>
In-reply-to
Content
I tried Python's bisect module on a large word list (words.txt contained
in http://www.greenteapress.com/thinkpython/swampy/swampy.1.1.zip)

If I search for something like 'musefully', 'museful' will come up as a
match. Maybe that's a feature... but seems to me like a bug.

Too much optimization going on here it seems, to such an extent that
false positives are given.

Here's the code I tried:

import bisect

fin = open('words.txt')
t = []

for line in fin:
    t.append(line.strip())

print(bisect.bisect(t,'musefully'))
History
Date User Action Args
2009-08-24 20:59:18kaashifsetrecipients: + kaashif
2009-08-24 20:59:18kaashifsetmessageid: <1251147558.19.0.488929549089.issue6778@psf.upfronthosting.co.za>
2009-08-24 20:59:14kaashiflinkissue6778 messages
2009-08-24 20:59:14kaashifcreate