News for hackers. Stuff that matters.
Re:The Elements of Python Style by shoyer on Monday January 04, 2016 @05:22PM (#10839182)
Even better (with Python 3.5 or newer):

    from contextlib import suppress

    with suppress(OSError):
        os.remove(temp_file)
More generally, context managers are the right way to refactor repeated try/except/finally clauses.
Re:The Elements of Python Style by amyjess on Monday January 04, 2016 @05:46PM (#10839342)
Well, I have yet another reason to migrate from 2 to 3 now.