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

Function _chain_from_iterable_of_lists

Lib/concurrent/futures/process.py:611–620  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

609
610
611def _chain_from_iterable_of_lists(iterable):
612 """
613 Specialized implementation of itertools.chain.from_iterable.
614 Each item in *iterable* should be a list. This function is
615 careful not to keep references to yielded objects.
616 """
617 for element in iterable:
618 element.reverse()
619 while element:
620 yield element.pop()
621
622
623class BrokenProcessPool(_base.BrokenExecutor):

Callers 1

mapMethod · 0.85

Calls 2

reverseMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected