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

Method iter_codes

Lib/test/test_compileall.py:1035–1039  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1033 return '\n'.join(lines)
1034
1035 def iter_codes(self):
1036 for docstring in (False, True):
1037 for assertion in (False, True):
1038 code = self.create_code(docstring=docstring, assertion=assertion)
1039 yield (code, docstring, assertion)
1040
1041 def test_disabled(self):
1042 # Deduplication disabled, no hardlinks

Callers 2

test_disabledMethod · 0.95
test_hardlinkMethod · 0.95

Calls 1

create_codeMethod · 0.95

Tested by

no test coverage detected