MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / interleave

Method interleave

tools/python-3.11.9-amd64/Lib/ast.py:696–706  ·  view source on GitHub ↗

Call f on each item in seq, calling inter() in between.

(self, inter, f, seq)

Source from the content-addressed store, hash-verified

694 self._in_try_star = False
695
696 def interleave(self, inter, f, seq):
697 """Call f on each item in seq, calling inter() in between."""
698 seq = iter(seq)
699 try:
700 f(next(seq))
701 except StopIteration:
702 pass
703 else:
704 for x in seq:
705 inter()
706 f(x)
707
708 def items_view(self, traverser, items):
709 """Traverse and separate the given *items* with a comma and append it to

Callers 15

items_viewMethod · 0.95
visit_FunctionTypeMethod · 0.95
visit_ImportMethod · 0.95
visit_ImportFromMethod · 0.95
visit_DeleteMethod · 0.95
visit_GlobalMethod · 0.95
visit_NonlocalMethod · 0.95
visit_WithMethod · 0.95
visit_AsyncWithMethod · 0.95
visit_ListMethod · 0.95
visit_SetMethod · 0.95
visit_DictMethod · 0.95

Calls 1

fFunction · 0.70

Tested by

no test coverage detected