News for hackers. Stuff that matters.
Re:Python Patterns: An Optimization Anecdote by epidemian on Sunday December 18, 2011 @01:54PM (#3367194)
I'm a total newbie at Python, but wouldn't

  ''.join(map(chr, list))
avoid the quadratic time of doing "string += something" (and also be a prettier solution IMO)?

(In Python 2.x doing ''.join(chr(n) for n in list) might be a better solution to avoid the intermediate list created by map)

Re:Python Patterns: An Optimization Anecdote by sgk284 on Sunday December 18, 2011 @04:12PM (#3367480)
The article is from 2002, so it's entire line of reasoning is quite outdated.