Skip to content

Commit 975c253

Browse files
committed
Document no-op except clauses explicitly
1 parent e6b239b commit 975c253

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api.rst

+2
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,8 @@ Exception-handling
912912
``except ETYPE as VAR:``
913913
- ``[VAR [ETYPE1 ETYPE2 …]]`` to catch any of the named types and bind it to
914914
``VAR``, like Python's ``except ETYPE1, ETYPE2, … as VAR:``
915+
- ``[[]]`` or ``[VAR []]`` to catch no exceptions, like Python's
916+
``except ():``.
915917

916918
The return value of ``try`` is the last form evaluated among the main body,
917919
``except`` forms, ``except*`` forms, and ``else``.

0 commit comments

Comments
 (0)