[issue35606] Add prod() function to the math module

Rémi Lapeyre report at bugs.python.org
Sun Dec 30 16:10:43 EST 2018


Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:

@serhiy.storchaka, it should be possible to make it far simpler if we make math_prod_impl more naive by removing the hypothesis made on `iterable` and the many fast-paths like builtin_sum_impl() does when SLOW_SUM is defined, right?

A naive implementation would also support user-defined types which would probably be a good thing IMO

----------
nosy: +remi.lapeyre

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35606>
_______________________________________


More information about the Python-bugs-list mailing list