Skip to content

Commit 86bfba5

Browse files
Minor issues
1 parent 5fa04e5 commit 86bfba5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/reference/compound_stmts.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,12 @@ and the exception occurs in the :keyword:`!try` clause of the inner handler,
279279
the outer handler will not handle the exception.)
280280

281281
When an exception has been assigned using ``as target``, it is cleared at the
282-
end of the :keyword:`!except` clause. This is as if ::
282+
end of the :keyword:`!except` clause. This is as if::
283283

284284
except E as N:
285285
foo
286286

287-
was translated to ::
287+
was translated to::
288288

289289
except E as N:
290290
try:
@@ -357,7 +357,7 @@ or the last :keyword:`!except*` clause has run.
357357

358358
After all :keyword:`!except*` clauses execute, the group of unhandled exceptions
359359
is merged with any exceptions that were raised or re-raised from within
360-
:keyword:`!except*` clauses. This merged exception group propagates on.::
360+
:keyword:`!except*` clauses. This merged exception group propagates on::
361361

362362
>>> try:
363363
... raise ExceptionGroup("eg",
@@ -1310,7 +1310,7 @@ mutable object, such as a list or a dictionary: if the function modifies the
13101310
object (e.g. by appending an item to a list), the default parameter value is in effect
13111311
modified. This is generally not what was intended. A way around this is to use
13121312
``None`` as the default, and explicitly test for it in the body of the function,
1313-
e.g.::
1313+
for example::
13141314

13151315
def whats_on_the_telly(penguin=None):
13161316
if penguin is None:

0 commit comments

Comments
 (0)