Version-Specific Features

Python 3.14 — Unparenthesized exception lists

Multiple exception classes can appear without surrounding parentheses when no as binding is present. Use parentheses when binding the caught exception; parentheses also retain compatibility with older Python. Requires Python 3.14 or the relevant build; example is not executed locally.

Formal Syntax & Structure

python syntaxpython
except ValueError, TypeError:

Return Value

Feature-specific

No single return type; see the example and feature description.

Working Example

Example Snippetpython
try:    int('bad')except ValueError, TypeError:    print('handled')
Python Reference