News for hackers. Stuff that matters.
Re:A Python Optimization Anecdote by Dylan16807 on Tuesday October 25, 2011 @12:35PM (#3154689)
Yeah, I wish the test text was posted to try. A custom dict that adds unicode characters on demand would have such a nice simple implementation that it was my first thought when looking at the problem. A couple lines in the class and then only one to call. "".join([REPLACEMENTS[c] for c in s])

There are no comments on this comment yet.