Call f on each item in seq, calling inter() in between.
(self, inter, f, seq)
| 60 | self._in_interactive = False |
| 61 | |
| 62 | def interleave(self, inter, f, seq): |
| 63 | """Call f on each item in seq, calling inter() in between.""" |
| 64 | seq = iter(seq) |
| 65 | try: |
| 66 | f(next(seq)) |
| 67 | except StopIteration: |
| 68 | pass |
| 69 | else: |
| 70 | for x in seq: |
| 71 | inter() |
| 72 | f(x) |
| 73 | |
| 74 | def items_view(self, traverser, items): |
| 75 | """Traverse and separate the given *items* with a comma and append it to |
no test coverage detected