Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

3.1

Compare
Choose a tag to compare
@2018-11-27 2018-11-27 released this 24 Jun 01:12
· 3 commits to master since this release
d74d3bf
  1. Added a new context manager TryContext to support contextual exception handling.
  2. The parameters silent_exc and raw_exc are deprecated and replaced with silent and raw.
  3. 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
  4. Refactored the code segments for exception parsing and handling, resulting in a faster solution.
  5. Added support for automatically setting the stacklevel parameter when acquiring the logger method.
  6. Improved numerous comments and type annotations.
  7. Updated the README file to reflect the above changes.

  1. 新增上下文管理器 TryContext,以支持上下文异常处理。
  2. 参数 silent_excraw_exc 将弃用,更新为 silentraw
  3. 修复问题:当异常发生的行不在被 TryExcept 装饰的函数内部时,行数定位可能会出现错误。#7
  4. 重构异常解析和异常处理的代码段,重构后的方案速度更快。
  5. 在获取日志记录器方法时支持自动设置 stacklevel 参数。
  6. 改进大量注释和类型注解。
  7. 对于以上改动更新自述文件。