[Python-ideas] String Subtraction

Laurens Van Houtven lvh at laurensvh.be
Thu Oct 14 23:15:28 CEST 2010

People already do this with the s1.replace(s2, "") idiom. I'm not sure what
the added value is. Your equivalent implementation looks pretty strange and
complex: how is it different from str.replace with the empty string as
second argument?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20101014/23e88456/attachment.html>

More information about the Python-ideas mailing list