__sub__ for string

Rikard Bosnjakovic bos at hack.org
Fri Apr 13 05:26:43 EDT 2001


Fredrik Lundh wrote:

> you mean "if self.data.endswith(other): return self.data[-len(other):]",
> don't you?

That would probably be the most obvious at first glance. But no, I
mean(t) remove all occurences of other.


I get your point though.

	(a + b) - b == a

that won't occur if I do it my way.   Oh well, just a though.


-- 
Rikard Bosnjakovic - http://bos.hack.org/cv/ - ICQ: 1158217

Anyone sending unwanted advertising e-mail to my address will be
charged $250 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.



More information about the Python-list mailing list