输出漂亮的堆栈跟踪。
项目描述
漂亮的堆栈跟踪:
from prettystack import PrettyStackTemplate
prettystack_template = PrettyStackTemplate().to_console()
try:
exception_raiser()
except Exception as exception:
output(prettystack_template.current_stacktrace())
输出(在终端窗口上着色):
<ipython-input-4-2d951494fd2a>
[1]: function 'exception_raiser'
/path/to/example1.py
5 :
6 : def exception_raiser():
--> 7 : raise CatchThis("Some kind of message")
8 :
example1.CatchThis
Some kind of docstring
Some kind of message
项目详情
关
prettystack -0.3.0.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 5a5ac1f68ab2db8f0a25f68b9fdb32273cea334509249e31e78d2c34ae36fc32 |
|
| MD5 | 7748388cc92ea4d9e0174f7ba9dc84d4 |
|
| 布莱克2-256 | d20617b4933392418845c05de9350dcd42f25c49d3f028a23d72295c14cf1639 |