News for hackers. Stuff that matters.
Re:An underrated feature in Python 3 by aturek on Tuesday August 05, 2014 @03:55PM (#8138968)
I don't understand Python exceptions that well. But it's great to have the pattern of maintaining the stack trace when re-raising an exception. Thanks OP!

(In case anyone missed it)

    except foo.FooException as e:
        raise BarException, BarException(e), sys.exc_info()[2]

There are no comments on this comment yet.