No exceptions
Project description
Unexceptional
Tired of all those pesky uncaught Exceptions?
pip install unexceptional
In the REPL,
In the CLI,
In IPython & Jupyter,
No exceptions.
How do I escape this fresh hell?
pip uninstall unexceptional
What is even happening?
In order to achieve transparency to the user, this package is invoked at every interpreter startup by means of an included .pth file.
For the CPython interpreter, sys.excepthook
is overridden with a no-op.
For IPython, a crime is committed:
Because the .pth file is invoked before IPython, a bastardized importlib.abc.MetaPathFinder
is inserted into sys.meta_path
to intercept future imports of IPython.core.interactiveshell
.
The InteractiveShell.showtraceback
method is then overridden with the no-op after the module is executed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for unexceptional-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf0ddaf351d09b62f70d691aec1a8c3b5c5e5d1c226cf6059857b91100f01595 |
|
MD5 | 3237ab919e09be0068b7844d3dd11135 |
|
BLAKE2b-256 | 0c7a78b7944e4b70109733e181c80e46c4047e9fffd551218046cca14d18effb |