This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Jeffrey.Kintscher, mark.dickinson, pablogsal, rhettinger, tim.peters, veky
Date 2020-08-08.15:59:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here's a pairwise variant:

    def prod(seq):
        stack = []
        exp = 0
        for i, x in enumerate(seq, start=1):
            m, e = frexp(x)
            exp += e
            stack += [m]
            while not i&1:
                i >>= 1
                x, y = stack[-2:]
                stack[-2:] = [x * y]
        total = 1.0
        while stack:
            total *= stack.pop()
        return ldexp(total, exp)
Date User Action Args
2020-08-08 15:59:27rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, veky, pablogsal, Jeffrey.Kintscher
2020-08-08 15:59:27rhettingersetmessageid: <>
2020-08-08 15:59:27rhettingerlinkissue41458 messages
2020-08-08 15:59:27rhettingercreate