New submission from E <ergun...@live.com>:
+ 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. ---------- components: Interpreter Core messages: 363241 nosy: ergun priority: normal severity: normal status: open title: + vs. % operator precedence not correct type: behavior versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39834> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com