Steven D'Aprano <st...@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

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to