MCPcopy Create free account
hub / github.com/ActiveState/code / split

Method split

recipes/Python/213027_Splitting_iterators/recipe-213027.py:51–55  ·  view source on GitHub ↗

Split this iterator into two pieces. The original iterator is still callable, as is the sub-iterator.

(self)

Source from the content-addressed store, hash-verified

49 return self.__idup.getNext(self.__iterno)
50
51 def split(self):
52 """Split this iterator into two pieces. The original iterator
53 is still callable, as is the sub-iterator."""
54
55 return _IDupped(self.__idup,self.__iterno)
56
57 def __iter__(self):
58 return self

Callers 15

parse_windowsFunction · 0.45
parse_unixFunction · 0.45
_VmBFunction · 0.45
watchFunction · 0.45
_unwindMethod · 0.45
_populateMethod · 0.45
deepListFunction · 0.45
file2matrixFunction · 0.45
convertConfigDictFunction · 0.45
_testFunction · 0.45
__init__Method · 0.45
nextMethod · 0.45

Calls 1

_IDuppedClass · 0.85

Tested by

no test coverage detected