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

Method __getslice__

pattern/db/__init__.py:1749–1753  ·  view source on GitHub ↗
(self, i, j)

Source from the content-addressed store, hash-verified

1747 raise TypeError, "Datasheet indices must be int, tuple or slice"
1748
1749 def __getslice__(self, i, j):
1750 # Datasheet[i1:i2] => Datasheet with rows i1-i2.
1751 return Datasheet(
1752 rows = list.__getslice__(self, i, j),
1753 fields = self.fields)
1754
1755 def __delitem__(self, index):
1756 self.pop(index)

Callers 1

cooccurrenceFunction · 0.45

Calls 1

DatasheetClass · 0.85

Tested by

no test coverage detected