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

Class CSVTableFormatter

Solutions/3_8/tableformat.py:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected