|
|
|
|
|
by nomel
333 days ago
|
|
Oddly enough, "except" variables don't remain bound! try:
x = int('cat')
except Exception as e:
pass
print(e) # <- NameError: name 'e' is not defined
So, it appears Python actually has three variable scopes (global, local, exception block)? |
|