Algorithm used by keyword 'in'
dataangel
k04jg02 at kzoo.edu
Sat Oct 9 14:55:48 EDT 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.
>
>-Derek.
>
>
>
>
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
mailing list