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

Method sync_gen_wrapper

Lib/test/test_asyncgen.py:354–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352 yield 20
353
354 def sync_gen_wrapper():
355 yield 1
356 sg = sync_gen()
357 sg.send(None)
358 try:
359 sg.throw(GeneratorExit())
360 except GeneratorExit:
361 yield 2
362 yield 3
363
364 async def async_gen():
365 yield 10

Callers

nothing calls this directly

Calls 2

sendMethod · 0.45
throwMethod · 0.45

Tested by

no test coverage detected