Mario Corchero - Exceptional Exceptions - How to properly raise, handle and create them.
"Speaker: Mario Corchero
Did you know there are multiple ways to raise and capture exceptions? Have you ever wondered if you should raise a built-in exception or create your own hierarchy? Did you ever find it hard to understand what an exception meant?
This talk will go through the decisions needed to raise and capture exceptions when creating a library. We will look at how to translate and handle errors, create your own exceptions, and make exceptions clear and easy to troubleshoot, while also understanding how they actually work, common pitfalls.
Slides can be found at: speakerdeck.com/pycon2019 and github.com/PyCon/2019-slides"
Пікірлер: 13
02:28 How to raise and capture an exception 04:00 finally else 04:50 order of execution of tray except else finally 06:03 Logging exceptions 10:25 Scoping of the except 12:22 Raise Exceptions 14:08 Chaining Exceptions 19:01 Exception Attributes 20:52 Custom Exception class 23:28 Error Codes
loved the tourism message! Conferences need to be at least this much fun.
@lincolnamari3486
3 жыл бұрын
i guess I'm quite off topic but does anyone know a good site to stream new series online ?
@dariustristen6263
3 жыл бұрын
@Lincoln Amari i use flixzone. Just google for it =)
Talk starts at 1:44
And the Question ??? Nice talk, very fun :D
Perfect.
Brilliant presentation :)
Very useful talk
Good one.
Would love for these talks not to use laser pointers, other than that great talk!
at 5:45 -- is the dis.dis showing that the 'finally' is put on to the heap first - then the try/except block? So the first return is the finally and the others are ignored?
noice