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

Method callback

Lib/test/test_threading.py:1030–1033  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1028 yield "generator"
1029
1030 def callback():
1031 if callback.gen is None:
1032 callback.gen = generator()
1033 return next(callback.gen)
1034 callback.gen = None
1035
1036 old_trace = sys.gettrace()

Callers

nothing calls this directly

Calls 1

generatorFunction · 0.85

Tested by

no test coverage detected