3 ms·
> `reduce()` was removed from the standard library Not true: it was moved from builtins to `functools` module, but it's still there.
by klibertp 6y ago
> `reduce()` was removed from the standard library
Not true: it was moved from builtins to `functools` module, but it's still there.
- legerdemain 6y agoPlease tell Guido that he got it wrong! > Only reduce will be removed from the 3.0 standard library. You can import it from functools.
- geofft 6y agoHe did, in fact, misspeak. functools is part of the standard library, and was part of the standard library in 3.0, and contained reduce: https://github.com/python/cpython/blob/3.0/Lib/functools.py#L10 https://github.com/python/cpython/blob/3.0/Lib/functools.py#... What he meant to say is that it's removed from the list of builtins.