On 4/10/2015 9:42 PM, Steven D'Aprano wrote:

try:
     spam()
except:
     # Implicitly an empty tuple.
     pass

No, specified as equivalent to 'except BaseException:' (or 'except (BaseException,):', either of which are different from 'except ():'. "An expression-less except clause, if present, must be last; it matches any exception."

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to