First python program, syntax error in while loop

Chris Angelico rosuav at gmail.com
Mon May 6 09:37:56 EDT 2013


On Mon, May 6, 2013 at 11:08 PM, Roy Smith <roy at panix.com> wrote:
> On the other hand, I've long since given up trying to remember operator
> precedence in various languages.  If I ever have even the slightest
> doubt, I just go ahead and put in the extra parens.

If I ever have even the slightest doubt, I just go ahead and type
"<language> operator precedence" into a web search and check it :)
Aside from utter insanity like PHP's ternary operator being wrongly
associative, that covers pretty much everything.

ChrisA



More information about the Python-list mailing list