[FRPythoneers] iterator like inject:into to generating comma-separated list

Mike Olson Mike.Olson at fourthought.com
Mon Sep 16 20:33:14 MDT 2002


On Mon, 2002-09-16 at 18:35, Sean Reifschneider wrote:
> On Mon, Sep 16, 2002 at 07:25:25PM -0500, Cameron Laird wrote:
> >I prefer
> >  string.join(map(str, list), ",") 
> 
> Sure, but which one is the One True Way (tm)?  ;-)

I would vote for 

",".join(list)

as it will be the quickest (written in C as of 2.something)

Mike


> 
> Sean
> -- 
>  Come see the violence inherent in the system!
>  Help!  Help!  I'm being repressed!  -- Monty Python and the Holy Grail
> Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
> tummy.com, ltd. - Linux Consulting since 1995.  Qmail, Python, SysAdmin
> _______________________________________________
> This message sent by the FRPythoneers mailing list.
> Unsubscribe: echo unsubscribe | FRPythoneers-request at lists.community.tummy.com
> URL: http://lists.community.tummy.com/mailman/listinfo/frpythoneers
-- 
Mike Olson                                Principal Consultant
mike.olson at fourthought.com                +1 303 583 9900 x 102
Fourthought, Inc.                         http://Fourthought.com 
PO Box 270590,                            http://4Suite.org
Louisville, CO 80027-5009, USA
XML strategy, XML tools, knowledge management




More information about the FRPythoneers mailing list