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.

classification
Title: Python 3.10: cyclomatic complexity of match-case syntax
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: PythonEnthusiast, mark.dickinson
Priority: normal Keywords:

Created on 2021-09-29 11:47 by PythonEnthusiast, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg402854 - (view) Author: Boštjan Mejak (PythonEnthusiast) Date: 2021-09-29 11:47
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?
msg402873 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2021-09-29 13:50
@Boštjan Mejak: I think this question belongs on a discussion forum rather than in the Python bug tracker - as I understand it, there's no bug reported here, and no change to the Python core proposed.

I'll close here. You might consider taking this to discuss.python.org or another forum.
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89481
2021-09-29 13:50:50mark.dickinsonsetstatus: open -> closed

nosy: + mark.dickinson
messages: + msg402873

resolution: not a bug
stage: resolved
2021-09-29 11:47:24PythonEnthusiastcreate