A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-August/081941.html below:

[Python-Dev] String concatenation

[Python-Dev] String concatenation [Python-Dev] String concatenationFredrik Lundh fredrik at pythonware.com
Sat Aug 23 12:30:47 CEST 2008
Tres Seaver wrote:

> - -1.  The feature exists to allow adherence to PEP-8, "Limit all lines to
> a maximum of 79 characters.", without requiring runtime concatenation
> costs.  I use it frequently when assembling and testing message strings,
> for instance.

removing it is a bad idea for the reasons already given, but requiring 
parentheses could help.

that is, the following would result in a warning or an error:

     L = ["first", "second" "third"]

but the following wouldn't:

     L = ["first", ("second" "third")]

     T = ("This is a line of text.\n"
          "This is another line of text.\n")

etc.

</F>

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4