[Python-ideas] String Subtraction (original) (raw)
Laurens Van Houtven lvh at laurensvh.be
Thu Oct 14 23:15:28 CEST 2010
- Previous message: [Python-ideas] String Subtraction
- Next message: [Python-ideas] String Subtraction
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
cheers lvh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20101014/23e88456/attachment.html>
- Previous message: [Python-ideas] String Subtraction
- Next message: [Python-ideas] String Subtraction
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]