This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author PythonEnthusiast
Recipients PythonEnthusiast
Date 2021-09-29.11:47:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632916044.26.0.76023159461.issue45318@roundup.psfhosted.org>
In-reply-to
Content
I am wondering about the cyclomatic complexity of using the new match-case syntax in Python 3.10, and later. What is the cyclomatic complexity difference (if any?) of a match-case code as opposed to code that uses the if-elif-else syntax?

So my question is this: Are there any benefits in using the match-case syntax in terms of cyclomatic complexity?
History
Date User Action Args
2021-09-29 11:47:24PythonEnthusiastsetrecipients: + PythonEnthusiast
2021-09-29 11:47:24PythonEnthusiastsetmessageid: <1632916044.26.0.76023159461.issue45318@roundup.psfhosted.org>
2021-09-29 11:47:24PythonEnthusiastlinkissue45318 messages
2021-09-29 11:47:24PythonEnthusiastcreate