Skip to content

API Reference

functools

chumicro_compat.functools

Cross-runtime functools.partial polyfill.

On CPython, re-exports the C-implemented functools.partial directly. On MicroPython and CircuitPython (where functools.partial is absent), provides a pure-Python implementation that matches CPython's public API.

Example
from chumicro_compat.functools import partial

greet = partial(print, "hello")
greet("world")  # prints: hello world