This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
How to spell anonymous default case? #6
Labels
accepted
Discussion leading to a final decision to include in the PEP
fully pepped
Issues that have been fully documented in the PEP
We could either use
case _: ...
orelse: ...
.In favor of
else
, this is what you use forif-elif-elif
.Against
else
:else
(for-else
/while-else
,if-else
,try-except-else
).case _: ...
_
as a pattern is useful inside nested patterns too, e.g.The text was updated successfully, but these errors were encountered: