Why do you need to derive your custom exception from BaseException, not object?

前端 未结 0 1589
傲寒
傲寒 2020-12-19 04:04

Every class that you create in Python will implicitly derive from object. The exception to this rule are classes used to indicate errors by raising an exception

相关标签:
回答
  • 消灭零回复
提交回复
热议问题