Python exceptions

17/04/2022 14 min Episodio 58
Python exceptions

Listen "Python exceptions"

Episode Synopsis

C++ has exceptions, Python has exceptions. But they’re not the same thing! How do exceptions work in CPython, how do we translate exceptions from C++ to Python (hint: it’s different for direct bindings versus pybind11), and what do warnings (which we also translate from C++ to Python) have in common with this infrastructure?