Except nest @ runtime
JÿGius³
exml at libero.it
Sun May 18 09:08:50 EDT 2003
Hi All.
Given the following code...
def funcB():
print 10 + [] # ERRORE!!!!
def funcA():
try:
funcB()
except TypeError:
print 'errore interno'
try:
funcA()
except TypeError:
print 'errore esterno'
# output
# errore interno
Yes, Python picks the most recent with a matching except, which in my case
is try inside funcB. But
what does it mean? Why this behaviour?
Best regards.
JyGius.
More information about the Python-list
mailing list