by potomak on 2/9/21, 4:06 AM with 12 comments
by JNRowe on 2/9/21, 5:05 AM
Accepted:
Specification https://www.python.org/dev/peps/pep-0634/
Motivation and Rationale https://www.python.org/dev/peps/pep-0635/
Tutorial https://www.python.org/dev/peps/pep-0636/
Rejected:
Unused variable syntax https://www.python.org/dev/peps/pep-0640/
Explicit Pattern Syntax for Structural Pattern Matching https://www.python.org/dev/peps/pep-0642/
by pansa2 on 2/9/21, 6:17 AM
https://discuss.python.org/t/gauging-sentiment-on-pattern-ma...
by pansa2 on 2/9/21, 8:45 AM
match status:
case 404:
return "Not found"
not_found = 404
match status:
case not_found:
return "Not found"
IIRC in an earlier proposal, the former would check for equality (`status == 404`) and the latter would perform an assignment (`not_found = status`).