Copy the comments of the first `length` items to repetitions `first`..`count` of them in `out`.
(self, out, count, length, first=0)
| 325 | self._comment_reindex(mapping) |
| 326 | |
| 327 | def _comment_repeat(self, out, count, length, first=0): |
| 328 | """Copy the comments of the first `length` items to repetitions `first`..`count` of them in `out`.""" |
| 329 | store = self.__dict__.get("_box_comments") |
| 330 | if store: |
| 331 | target = out._comment_store() |
| 332 | for repeat in range(first, max(count, 0)): |
| 333 | for index, comment in list(store.items()): |
| 334 | if index < length: |
| 335 | target[index + repeat * length] = copy.deepcopy(comment) |
| 336 | |
| 337 | def _comment_owner(self, key): |
| 338 | """(container, index) that holds the comment for `key`, following box_dots paths.""" |
no test coverage detected