diff --git a/functools/functools.py b/functools/functools.py index ae8c2cf0..24484265 100644 --- a/functools/functools.py +++ b/functools/functools.py @@ -2,7 +2,7 @@ def partial(func, *args, **kwargs): def _partial(*more_args, **more_kwargs): kw = kwargs.copy() kw.update(more_kwargs) - func(*(args + more_args), **kw) + return func(*(args + more_args), **kw) return _partial diff --git a/functools/metadata.txt b/functools/metadata.txt index 92f13f5d..f028e893 100644 --- a/functools/metadata.txt +++ b/functools/metadata.txt @@ -1,3 +1,3 @@ srctype = micropython-lib type = module -version = 0.0.5 +version = 0.0.6 diff --git a/functools/setup.py b/functools/setup.py index 28e30a5f..e1c8055a 100644 --- a/functools/setup.py +++ b/functools/setup.py @@ -7,7 +7,7 @@ sys.path.append("..") import optimize_upip setup(name='micropython-functools', - version='0.0.5', + version='0.0.6', description='functools module for MicroPython', long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", url='https://github.com/micropython/micropython-lib',