[New-bugs-announce] [issue45318] Python 3.10: cyclomatic complexity of match-case syntax
Boštjan Mejak
report at bugs.python.org
Wed Sep 29 07:47:24 EDT 2021
New submission from Boštjan Mejak <bostjan.xperia at gmail.com>:
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?
----------
components: Interpreter Core
messages: 402854
nosy: PythonEnthusiast
priority: normal
severity: normal
status: open
title: Python 3.10: cyclomatic complexity of match-case syntax
type: behavior
versions: Python 3.10, Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45318>
_______________________________________
More information about the New-bugs-announce
mailing list