MCPcopy Index your code
hub / github.com/python/cpython / _chain_from_iterable_of_lists

Function _chain_from_iterable_of_lists

Lib/concurrent/futures/process.py:625–634  ·  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

623
624
625def _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
637class BrokenProcessPool(_base.BrokenExecutor):

Callers 1

mapMethod · 0.85

Calls 2

reverseMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…