Algorithm used by keyword 'in'
k04jg02 at kzoo.edu
Sat Oct 9 20:55:48 CEST 2004
Derek Rhodes wrote:
>>In addition to John Roth's post, see the bottom of
>>http://docs.python.org/ref/sequence-types.html , which will help you
>>create your own algorithms for your own classes, if you like.
>Thanks for quick response guys.
Is python smart enough to do say a binary search if you sort the list
right before using in?
More information about the Python-list