functools: Add dummy update_wrapper(), wraps().

pull/118/head^2
Paul Sokolovsky 2014-06-08 00:26:17 +03:00
rodzic 5262fb8237
commit d4a7fda960
3 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -4,3 +4,13 @@ def partial(func, *args, **kwargs):
kw.update(more_kwargs)
func(*(args + more_args), **kw)
return _partial
def update_wrapper(wrapper, wrapped):
# Dummy impl
return wrapper
def wraps(wrapped):
# Dummy impl
return wrapped

Wyświetl plik

@ -1,3 +1,3 @@
srctype = micropython-lib
type = module
version = 0.0.1
version = 0.0.2

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-functools',
version='0.0.1',
version='0.0.2',
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/issues/405',