|6 points by sebst in: 1 year ago | 1 comment|
|2 points by intrepidhero 1 year ago | discuss | on: Raise Better Exceptions in Python|
Good point and well made. Does anyone have a good reference for best practices for using exceptions? I feel like usage in the wild, at least in my code base, is kind of all over the map. Sometimes they mean the program dies, sometimes they are more like a glorified return code. Sometimes they are base classes and sometimes subclasses. You can certainly do lots of cool things with them. I'd love to see a well reasoned treatment of how they *should* be used.