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 tim.peters
Recipients Nathaniel Manista, Vladimir Feinberg, mark.dickinson, serhiy.storchaka, tim.peters
Date 2022-02-05.19:28:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644089291.01.0.734330305673.issue46639@roundup.psfhosted.org>
In-reply-to
Content
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 :-)
History
Date User Action Args
2022-02-05 19:28:11tim.peterssetrecipients: + tim.peters, mark.dickinson, serhiy.storchaka, Nathaniel Manista, Vladimir Feinberg
2022-02-05 19:28:11tim.peterssetmessageid: <1644089291.01.0.734330305673.issue46639@roundup.psfhosted.org>
2022-02-05 19:28:11tim.peterslinkissue46639 messages
2022-02-05 19:28:10tim.peterscreate