exception while using else as a scope

This commit is contained in:
Dave Halter
2014-08-07 12:10:31 +02:00
parent ee65764c3a
commit 743d064e6d
2 changed files with 9 additions and 8 deletions

View File

@@ -11,12 +11,12 @@ foo(1)
# Exceptions are not analyzed. So check both if branches
def try_except(x):
try:
if 1.0:
if 0:
return 1
else:
return ''
except AttributeError:
return 1.0
#? int() float()
#? float() str()
try_except(1)