Message412594
I expect "obviousness" is mostly driven by background here. You know, e.g., that ceil(x) = -floor(-x) for any real x, and the application to integer division is just a special case of that. I expect programmers mostly don't know that, though. And Python having floor integer division is unusual among programming languages. Everyone coming from, say, C, has seen the (i + j - 1)/j "idiom" over and over, where "the usual" truncating integer division is the rule (and they know too that `i` and `j` are positive). Familiarity breeds "obviousness" too :-) |
|
Date |
User |
Action |
Args |
2022-02-05 19:28:11 | tim.peters | set | recipients:
+ tim.peters, mark.dickinson, serhiy.storchaka, Nathaniel Manista, Vladimir Feinberg |
2022-02-05 19:28:11 | tim.peters | set | messageid: <1644089291.01.0.734330305673.issue46639@roundup.psfhosted.org> |
2022-02-05 19:28:11 | tim.peters | link | issue46639 messages |
2022-02-05 19:28:10 | tim.peters | create | |
|