Message412780
> 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?) |
|
Date |
User |
Action |
Args |
2022-02-07 19:01:40 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, steven.daprano, serhiy.storchaka, Nathaniel Manista, Vladimir Feinberg |
2022-02-07 19:01:40 | mark.dickinson | set | messageid: <1644260500.76.0.502443775554.issue46639@roundup.psfhosted.org> |
2022-02-07 19:01:40 | mark.dickinson | link | issue46639 messages |
2022-02-07 19:01:40 | mark.dickinson | create | |
|