Skip to content
Compare
Choose a tag to compare
@2018-11-27 2018-11-27 released this 09 Feb 10:01
  1. Warning: This version is a refactored version and all changes are not backward compatible.
  2. Refactor the core code that creates the exception type, based on the new scheme module.__getattr__ to achieve.
  3. The new scheme does not support the creation of exception types by subscript, this is not compatible with the lower version (the solution is to replace the subscript with getattr).
  4. The new scheme is not supported in versions below Python 3.8.
  5. For the new scheme, refactored the logical block that imports real code.
  6. Removes the custom exception type ParameterError, in turn use the built-in exception type ValueError.
  7. Remove the deprecated paramenters ignore and output_raw_exc.
  8. Update the readme file and other information for the above changes.

  1. 警告:此版本为重构版本,所有改动均不向下兼容。
  2. 重构创建异常类型的核心代码,基于新的方案 module.__getattr__ 来实现。
  3. 新的方案不支持通过下标创建异常类型,这与低的版本不能兼容(解决方案是将下标换成 getattr)。
  4. 新的方案在 Python3.8 以下的版本不受支持。
  5. 针对新的方案,重构了导入真实代码的逻辑块。
  6. 移除自定义异常类型 ParameterError,转而使用内置的异常类型 ValueError,当传入的参数错误时。
  7. 移除已弃用的参数 ignoreoutput_raw_exc
  8. 对于以上改动更新自述文件等信息。