Author mark.dickinson
Recipients FR4NKESTI3N, josh.r, jwilk, kellerfuchs, mark.dickinson, pablogsal, rhettinger, serhiy.storchaka, steven.daprano, tim.peters
Date 2019-06-01.20:31:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559421106.34.0.151176756502.issue35431@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-06-01 20:31:46mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, rhettinger, jwilk, steven.daprano, serhiy.storchaka, josh.r, pablogsal, kellerfuchs, FR4NKESTI3N
2019-06-01 20:31:46mark.dickinsonsetmessageid: <1559421106.34.0.151176756502.issue35431@roundup.psfhosted.org>
2019-06-01 20:31:46mark.dickinsonlinkissue35431 messages
2019-06-01 20:31:46mark.dickinsoncreate