On Sat, 08 May 2010 13:46:59 -0700, Mark Dickinson wrote: >> However, s[:-len(t)] should be both faster and correct. > > Unless len(t) == 0, surely? Doh! The hazards of insufficient testing. Thanks for catching that. -- Steven