MCPcopy Index your code
hub / github.com/RustPython/RustPython / writer

Function writer

extra_tests/snippets/syntax_generator.py:115–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113l = []
114
115def writer():
116 while True:
117 try:
118 w = (yield)
119 except SpamException:
120 l.append('***')
121 else:
122 l.append(f'>> {w}')
123
124def wrapper(coro):
125 yield from coro

Callers 5

__init__Method · 0.50
test_only_one_bomMethod · 0.50
test_only_one_bomMethod · 0.50
writeMethod · 0.50

Calls 1

appendMethod · 0.45

Tested by 3

test_only_one_bomMethod · 0.40
test_only_one_bomMethod · 0.40
writeMethod · 0.40