CircuitPython implementation of CPython’s functools library.
Author(s): Alec Delaney
Implementation Notes
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
- circuitpython_functools.cache(user_function)
Create an unbounded cache.
- circuitpython_functools.lru_cache(*args, **kwargs)
Create a bounded cache which ejects the least recently used entry.
- circuitpython_functools.partial(func, *args, **kwargs)
Create a partial of the function.
- circuitpython_functools.total_ordering(cls)
Automatically create the comparison functions.
- circuitpython_functools.wraps(wrapped, assigned=None, updated=None)
Define a wrapper function when writing function decorators.