
#316 Python 3.11 is here and it's fast (crossover)
Python Bytes
00:00
Is There a Way to Enrich an Error Message?
You can add strings to any exception. This is not a group feature, it's any exception. You call add note, give it a string, and you can call it as many times as you want. And they will appear in the default trace back that the interpreter prints. It's a very simple feature, but it was received surprisingly well. People kind of like it, that you can enrich an exception after you catch it.
Transcript
Play full episode