Actually, Guido vetoed the idea: http://bugs.python.org/issue1093
But, as noted in that issue, you can make one pretty easily:
from functools import reduce # Valid in Python 2.6+, required in Python 3
import operator
reduce(operator.mul, (3, 4, 5), 1)
More Related Contents:
- How is the ‘is’ keyword implemented in Python?
- Better to ‘try’ something and catch the exception or test if it’s possible first to avoid an exception?
- Naming conflict with built-in function
- E731 do not assign a lambda expression, use a def
- How to add builtin functions?
- Python sum, why not strings? [closed]
- Exponentials in python: x**y vs math.pow(x, y)
- Why is there no xrange function in Python3?
- Decorating Hex function to pad zeros
- Override the {…} notation so i get an OrderedDict() instead of a dict()?
- How to restore a builtin that I overwrote by accident?
- Python: Can a subclass of float take extra arguments in its constructor?
- Why does numpy have a corresponding function for many ndarray methods?
- Does Python evaluate type hinting of a forward reference?
- Why is B = numpy.dot(A,x) so much slower looping through doing B[i,:,:] = numpy.dot(A[i,:,:],x) )?
- Is there a numpy/scipy dot product, calculating only the diagonal entries of the result?
- How can I use setuptools to generate a console_scripts entry point which calls `python -m mypackage`?
- Python: Why should I use next() and not obj.next()?
- Python: read object from file in python
- Calling a function of a module by using its name (a string)
- Getting the name of a variable as a string
- Python Requests throwing SSLError
- Finding multiple occurrences of a string within a string in Python [duplicate]
- syntax error when using command line in python
- Proxy awareness with pip
- Drag and drop explorer files to tkinter entry widget?
- Django — Can’t get static CSS files to load
- How to remove leading and trailing zeros in a string? Python
- How to use socket in Python as a context manager?
- How to get value of variable entered from user input?