"Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]> writes:

> John Roth wrote:
> 
> > result = "".join([str(x) for x in list])
> 
> As of 2.4, you should use a generator expression here instead (unless
> you require backwards-compatibility with 2.3).
> 
>     result = ''.join(str(x) for x in iterable)
> 
> Easier to read, more memory-efficient, potentially faster (depending on
> performance characteristics of building large lists).

Stop me if I sound too whiney, but in my original post that
started this thread just a couple of hours ago, I did in fact get
this right, so I'm not entirely sure who the two of you are
actually talking to...

-- 
Leo Breebaart  <[EMAIL PROTECTED]>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to