python-syntax icon indicating copy to clipboard operation
python-syntax copied to clipboard

Added support for match and case keywords introduced in python 3.10

Open jwackito opened this issue 3 years ago • 2 comments
trafficstars

Revision 3.10 (2022-01-09):

  • Add support for 'match' and 'case' keywords introduced in Python 3.10. Patch by Joaquin Bogado.

jwackito avatar Jan 09 '22 12:01 jwackito

But they are actually soft keywords: you can still define a variable / attribute named match (and it's pretty common when using re).

lilydjwg avatar Jan 09 '22 12:01 lilydjwg

Oh! I see. Any idea how to process them then?

jwackito avatar Jan 09 '22 12:01 jwackito