3 ms·
You can, the instructions are here: https://rich.readthedocs.io/en/latest/traceback.html https://rich.readthedocs.io/en/latest/traceback.html But it is noticea
by chameleon_world 6y ago
You can, the instructions are here: https://rich.readthedocs.io/en/latest/traceback.html https://rich.readthedocs.io/en/latest/traceback.html
But it is noticeably slower than the default python handler
- a_t48 6y agoSlower in what way? Just on crash? I don't mind that. But I meant for programs I _don't_ typically write source for - if Python has a way to run code before every program start up it would do what I want.
- willm 6y agoIts slower when it renders the traceback, all that reading of source and syntax highlighting takes second or two. There is a way of importing something automatically, see the sites module docs.