Alex Martelli wrote: > We should have an Evilly Cool Hack of the Year, and I nominate > Paul Du Bois's one as the winner for 2004. Do I hear any second...?
Oh bother, I just realized I sent my first reply using a good email address. Hope that cancel goes through quickly. Anyway, thank you! I've submitted it as a recipe. It includes a less-evil portable version, which might be improved further if PEP 288 ever comes through. p The recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/361452 -- http://mail.python.org/mailman/listinfo/python-list