Fredrik Lundh wrote: [...] > this is why e.g. > > string[:len(prefix)] == prefix > > is often a lot faster than > > string.startswith(prefix) This is interesting. In which cases does the former form perform better? [I won't stop using str.startswith anyway :) ] Regards. -- Roberto Bonvallet