Mastering Objectoriented Python
上QQ阅读APP看书,第一时间看更新

Tip

When to use catch-all else

Rarely. Use it only when the condition is obvious. When in doubt, be explicit and use else to raise an exception.

Avoid the vague else clause.