Improving Python (was: Lambda going out of fashion)

Dima Dorfman dima at trit.invalid
Sun Dec 26 23:34:36 EST 2004


On 2004-12-26, Fredrik Lundh <fredrik at pythonware.com> wrote:
> string methods are nice, but nothing groundbreaking, and their niceness is
> almost entirely offset by the horrid "".join(seq) construct that keeps popping
> up when people take the "the string module is deprecated" yada yada too
> seriously.  and what do the python-devers do?  they add a "sum" built-in,
> but no "join"?  hello?

I happen to not mind the ''.join syntax, but if I did, I would use

  str.join('', seq)

which is just like a join builtin except that it's not as easy to make
it work on pre-string-method Pythons.



More information about the Python-list mailing list