From 0a1b01ea4e017f5057261f2843e729d5ff71259c Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Tue, 5 Sep 2017 14:37:37 -0400 Subject: [PATCH] Fix section header markup. --- pep-0548.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pep-0548.rst b/pep-0548.rst index 9ac0f8c4e..aa14e8436 100644 --- a/pep-0548.rst +++ b/pep-0548.rst @@ -12,14 +12,16 @@ Post-History: Abstract +======== - This PEP proposes enhancing the 'break' and 'continue' statements + This PEP proposes enhancing the ``break`` and ``continue`` statements with an optional boolean expression that controls whether or not they execute. This allows the flow of control in loops to be expressed more clearly and compactly. Motivation +========== Quoting from the rejected :pep:`315`: @@ -48,6 +50,7 @@ Motivation Syntax +====== The syntax of the break and continue statements are extended as follows:: @@ -64,6 +67,7 @@ Syntax Semantics +========= A ``break if`` or ``continue if`` is executed if and only if ``expression`` evaluates to true. @@ -77,7 +81,8 @@ Semantics does not contain at least one ``break`` or ``return`` statement. -Justification +Justification and Examples +========================== The previous "best possible" form:: @@ -263,5 +268,6 @@ Justification Copyright +========= This document is placed in the public domain.