This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ergun
Recipients ergun
Date 2020-03-03.08:44:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583225070.21.0.47230314315.issue39834@roundup.psfhosted.org>
In-reply-to
Content
+ has operator precedence over % in python:
https://docs.python.org/3/reference/expressions.html

However:
> i=5
> i+5 % 10
10
> 10 % 10
0
> (i+5) % 10
0

Thus, for + to take precedence over %, parentheses need to be used.
History
Date User Action Args
2020-03-03 08:44:30ergunsetrecipients: + ergun
2020-03-03 08:44:30ergunsetmessageid: <1583225070.21.0.47230314315.issue39834@roundup.psfhosted.org>
2020-03-03 08:44:30ergunlinkissue39834 messages
2020-03-03 08:44:30erguncreate