You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I found a strange behavior using py-mon when I want to use match statements. Running the same script with python match.py works as expected.
I checked the python docs and the code seems to be correct. Even I did a fairly basic abstraction to discart code errors.Could it be possible that there is some conflict with the keyword "match"?
I am running the script on macos sonoma and python 3.12.6 and py-mon 2.0.5
Thanks in advance.
example match.py
myvar="Hello"matchmyvar:
case"Hello":
print("Hello World")
case"Hello 2":
print("Hello World 2")
case _:
print("No match")
stdout
[pymon] starting match.py
File ".../match.py", line 3
match myvar:
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered:
Hi, I found a strange behavior using py-mon when I want to use match statements. Running the same script with
python match.py
works as expected.I checked the python docs and the code seems to be correct. Even I did a fairly basic abstraction to discart code errors.Could it be possible that there is some conflict with the keyword "match"?
I am running the script on macos sonoma and python 3.12.6 and py-mon 2.0.5
Thanks in advance.
example match.py
stdout
[pymon] starting match.py File ".../match.py", line 3 match myvar: ^ SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: