title: Python 3.10 match/case with constants
body: <p>I tried to replace an if/elif/elif/.../else code block with the shorter <code>match/case</code> from Python 3.10.
  I have three constants defined and want to do something different for each one, so my code looks roughly like this:</p>
  <pre><code>&gt;&gt;&gt; const_a = 1
  &gt;&gt;&gt; const_b = 2
  &gt;&gt;&gt; const_c = 3
  &gt;&gt;&gt; interface = const_b  # example
  &gt;&gt;&gt; match interface:
  ...     case const_a:
  ...             print(&quot;case a&quot;)
  ...     case const_b:
  ...             print(&quot;case b&quot;)
  ...     case const_c:
  ...             print(&quot;case c&quot;)
  </code></pre>
  <p>However, when running this code, there will be an Exception:</p>
  <pre><code>File &quot;&lt;stdin&gt;&quot;, line 2
  SyntaxError: name capture 'const_a' makes remaining patterns unreachable
  </code></pre>
  <p>What am I doing wrong?</p>