Return to Snippet

Revision: 805
at August 10, 2006 09:53 by newtonapple


Updated Code
''.join( num for num in xrange(100000) )

Revision: 804
at August 10, 2006 09:51 by newtonapple


Initial Code
''.join(num for num in xrange(100000)

Initial URL
http://www.skymind.com/~ocrow/python_string/

Initial Description
Performance can be seen in link.  This code, however, uses generator expression instead of list comprehension.

Initial Title
Most Pythonic (and effecient way) to do string concatenation

Initial Tags
python

Initial Language
Python