Author lschoe
Recipients aleax, lschoe, mark.dickinson, pablogsal, pitrou, remi.lapeyre, rhettinger, serhiy.storchaka, tim.peters, vstinner, xtreak
Date 2019-02-14.08:03:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Nice to see the arrival of the prod() function.

Just as for the built-in pow(x, y[, z]) function it would be very useful to have an optional argument z for computing products modulo z. Typical use case in cryptography would be:

prod((pow(x, y, z) for x, y in zip(g, s)), z)

to compute the product of all (potentially many) g[i]**s[i]'s modulo z. 

And, just as with the use of pow(), the intermediate values for prod() may in general grow quickly, hence modular reduction is essential to limit time and space usage.
Date User Action Args
2019-02-14 08:03:18lschoesetrecipients: + lschoe, tim.peters, aleax, rhettinger, mark.dickinson, pitrou, vstinner, serhiy.storchaka, pablogsal, remi.lapeyre, xtreak
2019-02-14 08:03:18lschoesetmessageid: <>
2019-02-14 08:03:18lschoelinkissue35606 messages
2019-02-14 08:03:18lschoecreate