Message386138
`True or b` is always True and differs from `b or True`. `x = True and y` is always equivalent to `x = y`.
What is the use case of your optimization? Can you provide examples of real code which would benefit from removing all boolean tests (not only the repeated one) of non-constants?
If there are not such examples or they are not common, there is no need of this optimization. Just revert that changes. |
|
Date |
User |
Action |
Args |
2021-02-02 12:28:43 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, gregory.p.smith, ethan.furman, Mark.Shannon, josh.r, Mohamed_Atef, pablogsal, stestagg |
2021-02-02 12:28:43 | serhiy.storchaka | set | messageid: <1612268923.11.0.136961475152.issue42899@roundup.psfhosted.org> |
2021-02-02 12:28:43 | serhiy.storchaka | link | issue42899 messages |
2021-02-02 12:28:43 | serhiy.storchaka | create | |
|