Message344221
I'd expect any math module function accepting integers to be sufficiently duck-typed to accept integer-like things (i.e., objects that implement `__index__`), in just the same way that the regular math module functions (sin, log, atan, sqrt, ...) accept arbitrary objects defining `__float__`. We already do this for gcd, factorial. |
|
Date |
User |
Action |
Args |
2019-06-01 20:31:46 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, rhettinger, jwilk, steven.daprano, serhiy.storchaka, josh.r, pablogsal, kellerfuchs, FR4NKESTI3N |
2019-06-01 20:31:46 | mark.dickinson | set | messageid: <1559421106.34.0.151176756502.issue35431@roundup.psfhosted.org> |
2019-06-01 20:31:46 | mark.dickinson | link | issue35431 messages |
2019-06-01 20:31:46 | mark.dickinson | create | |
|