diff --git a/pep-0008.txt b/pep-0008.txt index 6c5656ee0..da3c009e1 100644 --- a/pep-0008.txt +++ b/pep-0008.txt @@ -1111,7 +1111,7 @@ Programming Recommendations A bare ``except:`` clause will catch SystemExit and KeyboardInterrupt exceptions, making it harder to interrupt a - program with :kbd:`Control-C`, and can disguise other problems. If you + program with Control-C, and can disguise other problems. If you want to catch all exceptions that signal program errors, use ``except Exception:`` (bare except is equivalent to ``except BaseException:``). diff --git a/pep-0352.txt b/pep-0352.txt index eb8f06df0..12212d8a0 100644 --- a/pep-0352.txt +++ b/pep-0352.txt @@ -134,7 +134,7 @@ interpreter should exit will not be caught and thus be allowed to propagate up and allow the interpreter to terminate. KeyboardInterrupt has been moved since users typically expect an -application to exit when they press the interrupt key (usually :kbd:`Ctrl-C`). +application to exit when they press the interrupt key (usually Ctrl-C). If people have overly broad ``except`` clauses the expected behaviour does not occur. diff --git a/pep-0475.txt b/pep-0475.txt index c408b964d..ea025bc69 100644 --- a/pep-0475.txt +++ b/pep-0475.txt @@ -353,7 +353,7 @@ as the timeout. So the sleep can be interrupted by ``SIGINT``. interrupted. ``PyOS_StdioReadline()`` also used ``sigint_event`` when ``fgets()`` -failed to check if :kbd:`Ctrl-C` or :kbd:`Ctrl-Z` was pressed. +failed to check if Ctrl-C or Ctrl-Z was pressed. Links