Skip to content

Fix: Import reduce from functools instead of setuptools#23

Open
HTGA75 wants to merge 1 commit intobradtraversy:masterfrom
HTGA75:fix-reduce-import
Open

Fix: Import reduce from functools instead of setuptools#23
HTGA75 wants to merge 1 commit intobradtraversy:masterfrom
HTGA75:fix-reduce-import

Conversation

@HTGA75
Copy link

@HTGA75 HTGA75 commented Dec 30, 2025

This PR fixes a bug in map, filter and reduce.py where reduce was being imported from setuptools.

In Python 3, reduce is no longer a built-in function and is located in the functools standard library module. Attempting to import it from setuptools results in an error. This change ensures the script runs correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant