Python Enhancement Proposal -- Floating an Idea
Consider the following code
def max(m: int, n: int) -> int: if m >= n: return m elif n >= m: return n else: raise Exception(f"Design Error: {vars()}")
There's a question about else: clause and the exception raised there.
- It's impossible. In this specific case, a little algebra can provide …