MCPcopy Index your code
hub / github.com/clips/pattern / __iter__

Method __iter__

pattern/db/__init__.py:2081–2082  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2079 def __len__(self):
2080 return len(self._datasheet)
2081 def __iter__(self): # Can be put more simply but optimized for performance:
2082 for i in xrange(len(self)): yield list.__getitem__(self._datasheet, i)[self._j]
2083 def __repr__(self):
2084 return repr(list(iter(self)))
2085 def __gt__(self, column):

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
__getitem__Method · 0.45

Tested by

no test coverage detected