[Python-ideas] The non-obvious nature of str.join (was Re: sum(...) limitation)
Wolfgang Maier
wolfgang.maier at biologie.uni-freiburg.de
Mon Aug 11 08:56:28 CEST 2014
On 08/11/2014 02:20 AM, Stephen J. Turnbull wrote:
>
> As far as concat goes, I don't really see what advantage it has over
> joiner.join, except in teaching. That might be enough for a builtin
> in this case, since concatenating iterables of strings is a pretty
> frequent operation in my experience.
>
I am not so sure about the benefit for teaching. I am using Python for
teaching programming to absolute beginners at university and, in my
experience, joiner.join is never a big hurdle. You have to explain it
once, of course, but after that people, especially people not biased by
other languages, do not have problems with it.
Wolfgang
More information about the Python-ideas
mailing list