kopia lustrzana https://github.com/micropython/micropython-lib
functools: Make partial wrapper pass on return value.
rodzic
23ff6305c3
commit
94be568a03
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
srctype = micropython-lib
|
||||
type = module
|
||||
version = 0.0.5
|
||||
version = 0.0.6
|
||||
|
|
|
@ -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',
|
||||
|
|
Ładowanie…
Reference in New Issue