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

Method __init__

pattern/db/__init__.py:1560–1565  ·  view source on GitHub ↗

A list of lists that can be exported as a comma-separated text file.

(self, rows=[], fields=None, **kwargs)

Source from the content-addressed store, hash-verified

1558class CSV(list):
1559
1560 def __init__(self, rows=[], fields=None, **kwargs):
1561 """ A list of lists that can be exported as a comma-separated text file.
1562 """
1563 fields = fields or kwargs.get("headers", None)
1564 self.__dict__["fields"] = fields # List of (name, type)-tuples, with type = STRING, INTEGER, etc.
1565 self.extend(rows)
1566
1567 def _set_headers(self, v):
1568 self.__dict__["fields"] = v

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

getMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected