[issue41399] Add stacklevel support for exceptions
wyz23x2
report at bugs.python.org
Sun Jul 26 06:17:57 EDT 2020
New submission from wyz23x2 <wyz23x2 at 163.com>:
Now warnings.warn supports a stacklevel parameter. But many users want exceptions to support it too.
Related:
https://stackoverflow.com/questions/34175111/raise-an-exception-from-a-higher-level-a-la-warnings
----------
components: Interpreter Core
messages: 374308
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Add stacklevel support for exceptions
type: enhancement
versions: Python 3.10, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41399>
_______________________________________
More information about the Python-bugs-list
mailing list