functools: Make partial wrapper pass on return value.

pull/120/head
Tobias Ammann 2016-11-15 18:37:27 +01:00 zatwierdzone przez Tobias Ammann
rodzic 23ff6305c3
commit 94be568a03
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -1,3 +1,3 @@
srctype = micropython-lib
type = module
version = 0.0.5
version = 0.0.6

Wyświetl plik

@ -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',