Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
5
def
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.py
File · 0.85
test_implied_dirs_performance
Method · 0.85
Calls
1
reduce
Method · 0.80
Tested by
1
test_implied_dirs_performance
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…