summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/try_as_var.py
blob: 0a92f1caeeae97d0ec169b69df473a399355a36a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
try:
    raise ValueError(534)
except ValueError as e:
    print(repr(e))

# Var bound in except block is automatically deleted
try:
    e
except NameError:
    print("NameError")