MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / CSVTableFormatter

Class CSVTableFormatter

Solutions/8_2/tableformat.py:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 print(' '.join('%10s' % d for d in rowdata))
29
30class CSVTableFormatter(TableFormatter):
31 def headings(self, headers):
32 print(','.join(headers))
33
34 def row(self, rowdata):
35 print(','.join(str(d) for d in rowdata))
36
37class HTMLTableFormatter(TableFormatter):
38 def headings(self, headers):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected