On 15/12/20 10:04 pm, Paul Sokolovsky wrote:
Example 1:

a + b + c   vs   a + (b + c)

Question 1:
Do you agree that there's a clear difference between left and right
expression?

Yes, because the default order of operations in Python is defined
so that a + b + c is the same as (a + b) + c.

Example 2:

a.b()   vs   (a.b)()

Question 2:
Do you agree that there's a *similar* difference here as in Example 1?

No, because the default order of operations here already has
a.b evaluated before making the call, so adding the parentheses
changes nothing.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/BLVN4Y464MZKICZDWFY4MX7BVMATWKJN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to