I come to praise .join, not to bury it...

Clarence Gardner clarence at netlojix.com
Tue Mar 6 10:53:37 EST 2001


On Tue, 06 Mar 2001, Mike C. Fletcher wrote:
>Here's a professional aesthetic's take:
>
>	mystring.join( )
>
>This is a perfectly normal and good-looking construct.  It seems pythonic
>and beautiful, object orientation is part of Python, and this works nicely.
>
>	"'".join( )
>	";".join( )
>	".".join( )
>	"!".join( )
>	",".join( )
>
>All look like executable line noise.  That is, the literal string's syntax
>makes the use of dotted attributes on such a string look jarring and
>off-putting.
<snip>

>That said, I don't think we'll get this particular wart out of the language,
>so we'll have to deal with the flaw in the way artists have through the
>ages, enhance it and accent it so people start to think it's a beauty mark.

comma.join()
period.join()
bang.join()
etc.





More information about the Python-list mailing list