[Python-checkins] peps (merge default -> default): merge

donald.stufft python-checkins at python.org
Sun Nov 30 18:27:30 CET 2014

changeset:   5631:baf5957cb698
parent:      5630:d31fe28e2766
parent:      5629:c9cd9f3cc044
user:        Donald Stufft <donald at stufft.io>
date:        Sun Nov 30 12:27:25 2014 -0500

  pep-0008.txt |  13 +++++++++++++
  1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/pep-0008.txt b/pep-0008.txt
--- a/pep-0008.txt
+++ b/pep-0008.txt
@@ -390,6 +390,19 @@
   public and internal interfaces still apply.
+String Quotes
+In Python, single-quoted strings and double-quoted strings are the
+same.  This PEP do not make a recommendation for this.  Pick a rule
+and stick to it.  When a string contains single or double quote
+characters, however, use the other one to avoid backslashes in the
+string. It improves readability.
+For triple-quoted strings, always use double quote characters to be
+consistent with the docstring convention in PEP 257.
 Whitespace in Expressions and Statements

Repository URL: https://hg.python.org/peps

More information about the Python-checkins mailing list