Re: Feature Proposal: Sequence .join method
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Feature Proposal: Sequence .join method

From: <en.karpachov@ospaz.ru>
Date: Fri Sep 30 2005 - 07:03:01 CEST

On Thu, 29 Sep 2005 20:37:31 -0600
Steven Bethard wrote:

> I don't like the idea of having to put this on all sequences. If you
> want this, I'd instead propose it as a function (perhaps builtin,
> perhaps in some other module).

itertools module seems the right place for it.

itertools.chain(*a)

is the same as the proposed

[].join(a)

-- 
jk
Received on Sat Oct 15 03:58:58 2005