[Python-ideas] [...].join(sep)

Boris Borcic bborcic at gmail.com
Mon May 21 16:27:35 CEST 2012


anatoly techtonik wrote:
> I am certain this was proposed many times, but still - why it is rejected?
>
> "real man don't use spaces".split().join('+').upper()
>      instead of
> '+'.join("real man don't use spaces".split()).upper()

IMO this should really be :

'+'.join(' '.split("real man don't use spaces")).upper()




More information about the Python-ideas mailing list