Files
cms-website/.deps_siteforge_v812/openpyxl/compat/product.py
T
2026-10-22 16:16:03 +08:00

18 lines
264 B
Python

# Copyright (c) 2010-2024 openpyxl
"""
math.prod equivalent for < Python 3.8
"""
import functools
import operator
def product(sequence):
return functools.reduce(operator.mul, sequence)
try:
from math import prod
except ImportError:
prod = product