This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
3.1
- Added a new context manager
TryContext
to support contextual exception handling. - The parameters
silent_exc
andraw_exc
are deprecated and replaced withsilent
andraw
. - Fixed an issue where the line number positioning could be incorrect when an exception occurs on a line outside the function decorated by
TryExcept
. #7 - Refactored the code segments for exception parsing and handling, resulting in a faster solution.
- Added support for automatically setting the
stacklevel
parameter when acquiring the logger method. - Improved numerous comments and type annotations.
- Updated the README file to reflect the above changes.
- 新增上下文管理器
TryContext
,以支持上下文异常处理。 - 参数
silent_exc
和raw_exc
将弃用,更新为silent
和raw
。 - 修复问题:当异常发生的行不在被
TryExcept
装饰的函数内部时,行数定位可能会出现错误。#7 - 重构异常解析和异常处理的代码段,重构后的方案速度更快。
- 在获取日志记录器方法时支持自动设置
stacklevel
参数。 - 改进大量注释和类型注解。
- 对于以上改动更新自述文件。