Any other Python flaws?
Michael Hudson
mwh at python.net
Fri Jun 15 03:47:40 EDT 2001
barry at digicool.com (Barry A. Warsaw) writes:
> Another one is the fact that you can't mix try/finallys with
> try/excepts.
Isn't the usual argument about this one that it's not obvious what
gets executed when?
Eg. does
try:
raise Exception
except Exception:
pass
finally:
print "hullo"
print "hullo"? I guess so. Still, the explicitness of what you have
to do now seems to me to be a win over the pain of multiple
indentations.
Cheers,
M.
who has, on occasion, written functions that start with three
successive "try:"s...
--
People think I'm a nice guy, and the fact is that I'm a scheming,
conniving bastard who doesn't care for any hurt feelings or lost
hours of work if it just results in what I consider to be a better
system. -- Linus Torvalds
More information about the Python-list
mailing list