Skip to content
Opensource internals
  • Posts

Exceptions

CPython's Exception Implementation in C

Oct 20, 2026 7 min read Jay Hubbert

Python exceptions are ordinary objects. In CPython every exception instance is a PyBaseExceptionObject (or a subclass struct that starts with the same PyException_HEAD), allocated …

PythonCpythonInternalsExceptions

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·