From d888affd7bfbdbcfc575a4e09b3b6e768e1855c9 Mon Sep 17 00:00:00 2001 From: Daniel Bader Date: Wed, 24 May 2017 22:12:06 -0700 Subject: [PATCH] Migrate PEP 8 changes made in https://hg.python.org/peps/rev/d05f70bfbd58 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index c6dd348..48458c1 100644 --- a/index.html +++ b/index.html @@ -371,7 +371,7 @@ result = some_function_that_takes_arguments(

Should a line break before or after a binary operator?

-

For decades the recommended style has been to break after binary operators. However, recent reseach unearthed recommendations by Donald Knuth to break before binary operators, in his writings about typesetting 4. Therefore it is permissible to break before or after a binary operator, as long as the convention is consistent locally. For new code Knuth's style is suggested.

+

For decades the recommended style has been to break after binary operators. However, recent research unearthed recommendations by Donald Knuth to break before binary operators, in his writings about typesetting 4. Therefore it is permissible to break before or after a binary operator, as long as the convention is consistent locally. For new code Knuth's style is suggested.

Some examples of code breaking before binary Boolean operators: