From bc9a9808f3b6522b724649cd470204a6f2bd4401 Mon Sep 17 00:00:00 2001 From: Joshua Dong Date: Fri, 16 Jun 2017 14:31:15 -0500 Subject: [PATCH] fix minor typos --- pep-0008.txt | 2 +- pep-0225.txt | 2 +- pep-0308.txt | 2 +- pep-0436.txt | 2 +- pep-0498.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pep-0008.txt b/pep-0008.txt index 78ec041fd2a..f7b45013313 100644 --- a/pep-0008.txt +++ b/pep-0008.txt @@ -466,7 +466,7 @@ Avoid extraneous whitespace in the following situations: Yes: spam(ham[1], {eggs: 2}) No: spam( ham[ 1 ], { eggs: 2 } ) -- Between a trailing comma and a following close parentheses. :: +- Between a trailing comma and a following close parenthesis. :: Yes: foo = (0,) No: bar = (0, ) diff --git a/pep-0225.txt b/pep-0225.txt index 9aa1f8fcc71..10b5b04230b 100644 --- a/pep-0225.txt +++ b/pep-0225.txt @@ -328,7 +328,7 @@ Some analysis are as follows: - The ``.op`` form is ambiguous: ``1.+a`` would be different from ``1 .+a``. - The bracket type operators are most favorable when standing alone, but - not in formulas, as they interfere with visual parsing of parenthesis for + not in formulas, as they interfere with visual parsing of parentheses for precedence and function argument. This is so for ``(op)`` and ``[op]``, and somewhat less so for ``{op}`` and ````. diff --git a/pep-0308.txt b/pep-0308.txt index 1498cf69a86..066f4a3b17e 100644 --- a/pep-0308.txt +++ b/pep-0308.txt @@ -174,7 +174,7 @@ Alternatives then else - The advantages are simple visual parsing, no required parenthesis, + The advantages are simple visual parsing, no required parentheses, no change in the semantics of existing keywords, not as likely as the proposal to be confused with statement syntax, and does not further overload the colon. The disadvantage is the diff --git a/pep-0436.txt b/pep-0436.txt index 82d585fb64c..e9938e96554 100644 --- a/pep-0436.txt +++ b/pep-0436.txt @@ -350,7 +350,7 @@ value in the generated C code. Few default values are permitted, owing to this manual translation step. If this were a Python function declaration, a parameter declaration -would be delimited by either a trailing comma or an ending parentheses. +would be delimited by either a trailing comma or an ending parenthesis. However, Argument Clinic uses neither; parameter declarations are delimited by a newline. A trailing comma or right parenthesis is not permitted. diff --git a/pep-0498.txt b/pep-0498.txt index cd50e578fd9..7506596b8d0 100644 --- a/pep-0498.txt +++ b/pep-0498.txt @@ -649,7 +649,7 @@ Lambdas inside expressions -------------------------- Because lambdas use the ``':'`` character, they cannot appear outside -of parenthesis in an expression. The colon is interpreted as the start +of parentheses in an expression. The colon is interpreted as the start of the format specifier, which means the start of the lambda expression is seen and is syntactically invalid. As there's no practical use for a plain lambda in an f-string expression, this is