On Wed, Aug 1, 2018 at 5:40 PM, Jonathan Fine <jfine2...@gmail.com> wrote:
> Hi Chris
>
> Thank you for your prompt reply. You wrote
>
>> Incorrect. The short-circuiting behaviour ends at any sort of
>> grouping. It's like how "a < b < c" is not equivalent to "(a < b) <
>> c", nor to "a < (b < c)".
>
> You've told me that my answer B is wrong. But you've not provided your
> correct answer. I'd be most grateful if you could tell me what are the
> equivalences between the 12 expressions I provided.

Oh. The equivalent ones are #1 and #2, and #7 and #8, where this
proposal doesn't change anything. Otherwise, they're not equivalent.

(And you can test #1 and #2 with dis.dis().)

ChrisA
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to