Podcast Lookup

Python exceptions

PyTorch Developer Podcast

  • April 17, 2022
  • 15 min
  • Episode 58
Episode page

About this episode

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?