On Sat, 09 Oct 2004 14:54:09 +0000, Derek Rhodes wrote: > What algorithm is used here? 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.