[Python-Dev] ''.join() again
Barry Warsaw
barry@python.org
21 Apr 2003 12:23:39 -0400
On Mon, 2003-04-21 at 12:05, Aahz wrote:
> Well, this means it's time for my regular reminder that I'm very far
> from an OO purist and I still hate ''.join(). OTOH, I've been using it
> recently for some of my own code, and while I'll never change my mind
> about its visual ugliness, I've got to admit that it has one cardinal
> virtue: you can never forget what order its arguments belong in.
And I'll do my semi-regular rant that
COMMASPACE.join(seq)
looks a lot nicer than
', '.join(seq)
even to the point of starting to /like/ this idiom. :)
-Barry