MCPcopy Index your code
hub / github.com/python/cpython / compose

Function compose

Lib/test/test_zipfile/_path/_functools.py:5–9  ·  view source on GitHub ↗
(*funcs)

Source from the content-addressed store, hash-verified

3
4# from jaraco.functools 3.5.2
5def compose(*funcs):
6 def compose_two(f1, f2):
7 return lambda *args, **kwargs: f1(f2(*args, **kwargs))
8
9 return functools.reduce(compose_two, funcs)

Callers 2

test_path.pyFile · 0.85

Calls 1

reduceMethod · 0.80

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…