A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-August/074353.html below:

[Python-Dev] Order of operations (was: PEP 238 - The /

[Python-Dev] Order of operations (was: PEP 238 - The // operator should truncate instead of floor) [Python-Dev] Order of operations (was: PEP 238 - The // operator should truncate instead of floor)"Martin v. Löwis" martin at v.loewis.de
Wed Aug 29 20:17:57 CEST 2007
> Do you know why? Thanks!

It's a matter of precedence: ** has higher precedence
than unary + and -, which has higher precedence than / and *,
which have higher precedence than binary + and -. See
power, factor, term in Grammar/Grammar.

I'm not sure why precedence was defined that
way, though.

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4