Updated script that can be controled by Nodejs web app
This commit is contained in:
17
lib/python3.13/site-packages/openpyxl/compat/product.py
Normal file
17
lib/python3.13/site-packages/openpyxl/compat/product.py
Normal file
@ -0,0 +1,17 @@
|
||||
# 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
|
Reference in New Issue
Block a user