[Python-ideas] why not try without except?

spir denis.spir at free.fr
Sat Apr 25 10:42:31 CEST 2009


Le Sat, 25 Apr 2009 10:32:07 +0200,
spir <denis.spir at free.fr> s'exprima ainsi:

> Hello,
> 
> In various cases, we need to do something (set or update a var or
> attribute, launch an action, compute data), or not, according to a
> condition that is a potential case of exception. 
[...]

Also note the following parallel:

if...    if...else...      if...elif...elif...elif...
N/A      try...except...   try...except...except...except...

Denis
------
la vita e estrany



More information about the Python-ideas mailing list