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

Class Manager

Lib/test/test_coroutines.py:1206–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1204
1205 def test_with_1(self):
1206 class Manager:
1207 def __init__(self, name):
1208 self.name = name
1209
1210 async def __aenter__(self):
1211 await AsyncYieldFrom(['enter-1-' + self.name,
1212 'enter-2-' + self.name])
1213 return self
1214
1215 async def __aexit__(self, *args):
1216 await AsyncYieldFrom(['exit-1-' + self.name,
1217 'exit-2-' + self.name])
1218
1219 if self.name == 'B':
1220 return True
1221
1222
1223 async def foo():

Callers 3

fooMethod · 0.70
test_for_6Method · 0.70
mainMethod · 0.70

Calls

no outgoing calls

Tested by 3

fooMethod · 0.56
test_for_6Method · 0.56
mainMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…