On Oct 19, 3:24 am, Tim Chase <python.l...@tim.thechases.com> wrote: > Carl Banks wrote: > > Consider this thought experiment: > > > class Something(object): > > def __radd__(self,other): > > return other + "q" > > > x = ["a","b","c",Something()] > > > If x were passed to "".join(), it would throw an exception; but if > > passed to a sum() without any special casing, it would successfully > > return "abcq". > > Okay...this is the best argument I've heard for not using > "".join() {Awards Carl one (1) internet}
Well that was my argument in the last post you followed up to, I just used a bad example. Actually this example was described by Dave Angel, so you should give the internet to him. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list