normal:
try:
something may go wrong...
except:
pass
else:
others func...
what i need:
try:
something may go wrong...
else:
others func...
Are there some reasons for 'try...else' not exists?
normal:
try:
something may go wrong...
except:
pass
else:
others func...
what i need:
try:
something may go wrong...
else:
others func...
Are there some reasons for 'try...else' not exists?
If it was supported, the syntax
try:
something may go wrong...
else:
others func...
would be exactly equivalent in behaviour to
something may go wrong...
others func...
i.e. you do not need any special syntax for it