Le 24/07/2018 à 00:39, Chris Angelico a écrit :
On Tue, Jul 24, 2018 at 8:22 AM, Thomas Jollans <[email protected]> wrote:
...
What about:

5 < x < 10

Can you add parentheses to that to "make precedence and evaluation order clear"?
Correct me if I'm wrong, but to my knowledge, this is just a shorthand to `5 < x and x < 10`.

Making the precedence and evaluation order clear doesn't necessarily rely on adding parenthesis, it may rely on expanding the expression (you may add parenthesis after that, if you think it's needed).
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to