builtin_eval_error.py 110 Bytes
Newer Older
1
2
3
# test if eval raises SyntaxError

try:
4
    print(eval("[1,,]"))
5
6
except SyntaxError:
    print("SyntaxError")