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

Method _finish

Lib/test/test_interpreters/utils.py:313–317  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 def __init__(self, capturing):
312 self._capturing = capturing
313 def _finish(self):
314 if self._capturing is None:
315 return
316 self._final = self._capturing.final()
317 self._capturing = None
318 def __iter__(self):
319 self._finish()
320 yield from self._final

Callers 3

__iter__Method · 0.95
__len__Method · 0.95
__getattr__Method · 0.95

Calls 1

finalMethod · 0.80

Tested by

no test coverage detected