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 mark.dickinson
Recipients Nathaniel Manista, Vladimir Feinberg, mark.dickinson, serhiy.storchaka, steven.daprano, tim.peters
Date 2022-02-07.19:01:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644260500.76.0.502443775554.issue46639@roundup.psfhosted.org>
In-reply-to
Content
> Couldn't math.ceildiv(x, y) be implemented as -(-x//y) in a type-agnostic fashion?

Ah, good point. Yes, that could work.

We'd have to decide what to do about Decimal if we took this approach, since the -(-x//y) trick doesn't work there. (Document the issue? Try to make things work for Decimal?)
History
Date User Action Args
2022-02-07 19:01:40mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, steven.daprano, serhiy.storchaka, Nathaniel Manista, Vladimir Feinberg
2022-02-07 19:01:40mark.dickinsonsetmessageid: <1644260500.76.0.502443775554.issue46639@roundup.psfhosted.org>
2022-02-07 19:01:40mark.dickinsonlinkissue46639 messages
2022-02-07 19:01:40mark.dickinsoncreate