PyTorch Developer Podcast
PyTorch Developer Podcast
Edward Yang, Team PyTorch
Python exceptions
14 minutes Posted Apr 17, 2022 at 4:00 pm.
0:00
14:47
Download MP3
Show notes

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?