Python有一个名为的单例NotImplemented.
NotImplemented
为什么有人想要返回NotImplemented而不是提出NotImplementedError异常?难道不会让它更难找到bug,例如执行无效方法的代码吗?
NotImplementedError
python exception
exception ×1
python ×1