[Python-ideas] The non-obvious nature of str.join (was Re: sum(...) limitation)

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Aug 11 16:59:12 CEST 2014


On 11/08/2014 14:56, Alexander Belopolsky wrote:
>
> On Mon, Aug 11, 2014 at 2:56 AM, Wolfgang Maier
> <wolfgang.maier at biologie.uni-freiburg.de
> <mailto:wolfgang.maier at biologie.uni-freiburg.de>>
> wrote:
>
>     I am using Python for teaching programming to absolute beginners at
>     university and, in my experience, joiner.join is never a big hurdle.
>
>
> In my experience, it is the asymmetry between x.join(y) and x.split(y)
> which causes most of the confusion.  In x.join(y), x is the separator
> and y is the data being joined, but in x.split(y), it is the other way
> around.
>

Could you try something which to my understanding is unprecedented in 
the world of computing, as in point them to the docs?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Python-ideas mailing list