News for hackers. Stuff that matters.
Re:Python Patterns - An Optimization Anecdote by onedognight on Tuesday February 22, 2011 @12:09PM (#2250507)
Oddly the author finally comes up with

    import string
    def f6(list):
        return string.joinfields(map(chr, list), "")
and never the obvious and shorter use of "".join()

    def f8(list):
       return "".join(map(chr, list))
which beats all but the array module in my benchmarks.
Re:Python Patterns - An Optimization Anecdote by arantius on Tuesday February 22, 2011 @01:21PM (#2250879)