Message397923
The binary power operator (`**`) has higher precedence than the unary negation operator (`-`).
That is, -x**y groups as -(x**y).
Not a bug - that's how it was designed and how it's documented.
Note that this isn't novel, either. For example, to give just one example of many, that's how Maxima does it too:
(%i1) -2**3;
(%o1) -8 |
|
Date |
User |
Action |
Args |
2021-07-21 05:25:37 | tim.peters | set | recipients:
+ tim.peters, anthonypjshaw, lys.nikolaou, pablogsal |
2021-07-21 05:25:37 | tim.peters | set | messageid: <1626845137.28.0.136820069346.issue44692@roundup.psfhosted.org> |
2021-07-21 05:25:37 | tim.peters | link | issue44692 messages |
2021-07-21 05:25:37 | tim.peters | create | |
|