Python的Haiku错误信息
项目描述
- 无错误生活无意义 没有斗争,没有喜悦
~ (Brian M. Porter)
haiku-errors
只需导入haiku_errors,当未处理异常时即可打印Haiku。
$ python -c "import haiku_errors; raise SystemError"
Traceback (most recent call last):
File "<string>", line 1, in <module>
SystemError
Something has gone wrong.
Format your disk, because this
Error won't help you.
~ (Cheryl Walker)
一行示例,无需显式raise
$ python3 -c "import haiku_errors; f = lambda: f(); f()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
LookupError
The ten thousand things,
How long do any persist?
Netscape, too, has gone.
~ (Jason Willoughby)
要安装,请运行
$ pip install haiku-errors
项目详情
关闭
haiku-errors-0.3.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 8a6867a50977df7b681fcb399c227363035b079454cee87933370d6e6043fd06 |
|
MD5 | 5a1ff1fa36cf8899705c793364e791d3 |
|
BLAKE2b-256 | 8b9b6c71fddf669d5931b5430c3d0761506cfcd714c0afdc80093b012b7134d1 |
关闭
haiku_errors-0.3.0-py2.py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3bdcc4a9d9ea85e8c5b1f53638c2f717ba419da720d9abd18db6463aa92b2c42 |
|
MD5 | 3636a6d7ef3acfd65de98f055ab1169c |
|
BLAKE2b-256 | dd876d67cd7dc4bebdf37cd16f9339481faa8c7f6f4295058f06a0433afc74fa |