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/2014-August/135803.html below:

[Python-Dev] Multiline with statement line continuation

[Python-Dev] Multiline with statement line continuation [Python-Dev] Multiline with statement line continuationBen Finney ben+python at benfinney.id.au
Sat Aug 16 09:25:33 CEST 2014
Steven D'Aprano <steve at pearwood.info> writes:

> If people were going to be prone to mistake
>
>     with (a, b, c): ...
>
> as including a tuple

… because the parens are a strong signal “this is an expression to be
evaluated, resulting in a single value to use in the statement”.

> they would have already mistaken:
>
>     with a, b, c: ...
>
> the same way. But they haven't.

Right. The presence or absence of parens make a big semantic difference.

-- 
 \      “The process by which banks create money is so simple that the |
  `\     mind is repelled.” —John Kenneth Galbraith, _Money: Whence It |
_o__)                                       Came, Where It Went_, 1975 |
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