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/2011-June/111767.html below:

Add rules for indenting continuation lines.

[Python-Dev] [Python-checkins] peps: Add rules for indenting continuation lines. [Python-Dev] [Python-checkins] peps: Add rules for indenting continuation lines.Ben Finney ben+python at benfinney.id.au
Fri Jun 3 04:16:37 CEST 2011
Greg Ewing <greg.ewing at canterbury.ac.nz> writes:

> Another way to approach that is
>
> if some_function(
>     Some,
>     Parameters,
>     To,
>     Pass,
>     ):
>         If_True_Operations()
>
> i.e. indent the *body* one more place. This avoids the jarriness of
> seeing an outdent that doesn't correspond to the closing of a suite.

−1. Continuation lines for a single statement *should* look different (I
disagree with “jarring”) from a suite of statements.

-- 
 \         “Simplicity and elegance are unpopular because they require |
  `\           hard work and discipline to achieve and education to be |
_o__)                                appreciated.” —Edsger W. Dijkstra |
Ben Finney

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