Index: pages/coding-style.html =================================================================== --- a/pages/coding-style.html +++ b/pages/coding-style.html @@ -45,7 +45,7 @@
repr()
in Python 2, or ascii()
in Python 3, i.e. use single quotes except to avoid escaping of embedded quotes and escape special and non-ascii characters. For docstrings, however, follow PEP-257.}}ascii()
, i.e. use single quotes except to avoid escaping of embedded quotes and use \u
escapes for non-ascii characters but don't prefix strings with u
. For docstrings, however, follow PEP-257.}}+
operator when concatenating exactly two strings, use the format()
method for more complex string formatting, use the join()
method when concatenating pre-existing sequences.}}