Specialized implementation of itertools.chain.from_iterable. Each item in *iterable* should be a list. This function is careful not to keep references to yielded objects.
(iterable)
| 623 | |
| 624 | |
| 625 | def _chain_from_iterable_of_lists(iterable): |
| 626 | """ |
| 627 | Specialized implementation of itertools.chain.from_iterable. |
| 628 | Each item in *iterable* should be a list. This function is |
| 629 | careful not to keep references to yielded objects. |
| 630 | """ |
| 631 | for element in iterable: |
| 632 | element.reverse() |
| 633 | while element: |
| 634 | yield element.pop() |
| 635 | |
| 636 | |
| 637 | class BrokenProcessPool(_base.BrokenExecutor): |