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

2.1

Compare
Choose a tag to compare
@2018-11-27 2018-11-27 released this 02 Oct 02:07
6362d27
  1. Optimize the core code of creating exception types.
  2. The dictionary __history__ is now not allowed to be modified externally.
  3. Reconstructs the underlying exception type GqylpyError.
  4. Add decorators ATryExcept and ARetry, replacing TryExceptAsync and RetryAsync, respectively.
  5. For the decorator TryExceptAsync and RetryAsync that will be deprecated, a large number of parameter comments are omitted.
  6. Adjust the code block that gets logger in TryExcept.
  7. Update the annotation information for the __getattr__ method, now the feature description is more complete.
  8. Correct the description when the parameter error of the Retry.
  9. Update the logical blocks imported into real code to fit the new design.
  10. Other minor changes, fixes or optimizations.

  1. 优化创建异常类型的核心代码。
  2. 字典 __history__ 现在不允许被外部修改。
  3. 重构底层异常类型 GqylpyError
  4. 新增装饰器 ATryExceptARetry,分别取代 TryExceptAsyncRetryAsync
  5. 对于即将弃用的装饰器 TryExceptAsyncRetryAsync,省略掉大量的参数注解。
  6. 调整 TryExcept 中获取 logger 的代码块。
  7. 更新 __getattr__ 方法的注释信息,现在的功能描述更清晰。
  8. 纠正 Retry 中的参数错误时的描述信息。
  9. 更新导入真实代码的逻辑块为适配新的设计方案。
  10. 其它一些小的改动,修复或优化。