[Python-checkins] peps: Guido suggests alternative language for whitespace around operators.
barry.warsaw
python-checkins at python.org
Thu Apr 19 19:42:30 CEST 2012
http://hg.python.org/peps/rev/37af28ad2972
changeset: 4276:37af28ad2972
user: Barry Warsaw <barry at python.org>
date: Thu Apr 19 13:42:24 2012 -0400
summary:
Guido suggests alternative language for whitespace around operators.
files:
pep-0008.txt | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/pep-0008.txt b/pep-0008.txt
--- a/pep-0008.txt
+++ b/pep-0008.txt
@@ -305,7 +305,11 @@
``>=``, ``in``, ``not in``, ``is``, ``is not``), Booleans (``and``,
``or``, ``not``).
-- Use spaces around arithmetic operators:
+- If operators with different priorities are used, consider adding
+ whitespace around the operators with the lowest priority(ies). Use
+ your own judgement; however, never use more than one space, and
+ always have the same amount of whitespace on both sides of a binary
+ operator.
Yes::
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list