mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-22 05:25:35 -04:00
7 lines
112 B
Python
7 lines
112 B
Python
# test if eval raises SyntaxError
|
|
|
|
try:
|
|
print(eval("[1, *a]"))
|
|
except SyntaxError:
|
|
print("SyntaxError")
|