code review

Chris Angelico rosuav at gmail.com
Sun Jul 1 08:33:15 CEST 2012


On Sun, Jul 1, 2012 at 4:27 PM, Steven D'Aprano
<steve+usenet at pearwood.info> wrote:
> Yes, you can find specially crafted examples where adding parentheses in
> certain places, but not others, doesn't change the overall evaluation of
> the expression.

My point was that adding parentheses around the tightest-binding
operator is a common, clear, and usually insignificant, way of
demonstrating operator precedence. So FOR THAT USE they must not
change evaluation of the expression. Obviously if you put them
anywhere else, they change evaluation. Nice job knocking down a straw
man.

ChrisA



More information about the Python-list mailing list