On 07/11/2020 10:29 AM, Jim J. Jewett wrote:
To me, "else:" has a slightly different meaning than "case _:"
case _: essentially a default, ensuring that the match logic
is complete.
else: OK, the subject of this match failed, here is our fallback
logic.
Is there anywhere else where Python goes out of its way
to provide two ways of doing the same thing just because
they might feel semantically different?
--
Greg
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/LVURCUFI3SGTXGEXBVC7EVWPLNKP5N3N/
Code of Conduct: http://python.org/psf/codeofconduct/