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

Method index

pattern/db/__init__.py:2039–2042  ·  view source on GitHub ↗
(self, column)

Source from the content-addressed store, hash-verified

2037 return len([True for c in self if c == column])
2038
2039 def index(self, column):
2040 if isinstance(column, DatasheetColumn) and column._datasheet == self._datasheet:
2041 return column._j
2042 return list(self).index(column)
2043
2044 def sort(self, cmp=None, key=None, reverse=False, order=None):
2045 # This makes most sense if the order in which columns should appear is supplied.

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected