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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to