sum and strings

Bill Pursell bill.pursell at gmail.com
Sat Aug 19 03:11:25 EDT 2006


Georg Brandl wrote:
> Paul Rubin wrote:
> > Sybren Stuvel <sybrenUSE at YOURthirdtower.com.imagination> writes:
> >> Because of "there should only be one way to do it, and that way should
> >> be obvious". There are already the str.join and unicode.join methods,
> >
> > Those are obvious???
>
> Why would you try to sum up strings? Besides, the ''.join idiom is quite
> common in Python.

One could extend this argument to dissallow the following:
>>> "foo" + "bar"




More information about the Python-list mailing list