This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
3.0
- Warning: This version is a refactored version and all changes are not backward compatible.
- Refactor the core code that creates the exception type, based on the new scheme
module.__getattr__
to achieve. - 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
). - The new scheme is not supported in versions below Python 3.8.
- For the new scheme, refactored the logical block that imports real code.
- Removes the custom exception type
ParameterError
, in turn use the built-in exception typeValueError
. - Remove the deprecated paramenters
ignore
andoutput_raw_exc
. - Update the readme file and other information for the above changes.
- 警告:此版本为重构版本,所有改动均不向下兼容。
- 重构创建异常类型的核心代码,基于新的方案
module.__getattr__
来实现。 - 新的方案不支持通过下标创建异常类型,这与低的版本不能兼容(解决方案是将下标换成
getattr
)。 - 新的方案在 Python3.8 以下的版本不受支持。
- 针对新的方案,重构了导入真实代码的逻辑块。
- 移除自定义异常类型
ParameterError
,转而使用内置的异常类型ValueError
,当传入的参数错误时。 - 移除已弃用的参数
ignore
和output_raw_exc
。 - 对于以上改动更新自述文件等信息。