Re: find sublist inside list

2009-05-04 Thread Matthias Gallé
Oh well, I have done a mistake, it seems. Another solution then: 'acaccgac'.replace("ac", chr(6)) '\x06\x06cg\x06' Bye, bearophile Thanks bearophile and John for your quick answers. Unfortunately, the int that can replace a sublist can be > 255, but J

find sublist inside list

2009-05-04 Thread Matthias Gallé
d like to work with lists straightforward, but I could not found anything to search a sublist inside a list. Any propositions for a simple solution? Thanks in advance, -- Matthias Gallé Project Symbiose Centre de Recherche INRIA Rennes - Bretagne Atlantique, Campus de Beaulieu, 35042 Rennes cedex, France tel: (33|0) 2 9984 7523 http://www.irisa.fr/symbiose/matthias_galle -- http://mail.python.org/mailman/listinfo/python-list