How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

PEP 830: Add timestamps to exceptions and tracebacks

calendar_today March 15, 2026 person Gregory P. Smith (greg@krypto.org) domain python

This PEP adds an optional timestamp_ns attribute to BaseException that records when the exception was instantiated with no observable overhead. When enabled via environment variable or command-line flag, formatted tracebacks display this timestamp alongside the exception message.

open_in_new Read original post