On Tue, Mar 10, 2009 at 3:57 PM, Michael Foord <fuzzyman@voidspace.org.uk> wrote:
Is there something you don't like about this one: http://code.activestate.com/recipes/576529/

Yes -- it is not in the standard library. As I said, eventually all the 15,000 matches on Google Code need to update their code and copy that snippet to their util/, write tests for it etc.