string.join() syntax quirky?

Werner Schiendl ws-news at gmx.at
Mon Nov 26 04:56:16 EST 2001


Hi,

>
> I've decided to do what I should have from the beginning: always use
> string.join.  I didn't want to because it seemed silly to import a whole
> module for one function, and as long as I'm using Official String Methods
for
> everything else I should use them for joins too.

I think this is no big deal, since the string module maps most of its
actions including join to the string methods.
Of course, this will slightly reduce the performance, but the module itself
is pretty light-weight.

Moreover, I think readable code is more important than performance.

regards
Werner





More information about the Python-list mailing list