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

Class CSVTableFormatter

Solutions/3_5/tableformat.py:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 print(' '.join('%10s' % d for d in rowdata))
23
24class CSVTableFormatter(TableFormatter):
25 def headings(self, headers):
26 print(','.join(headers))
27
28 def row(self, rowdata):
29 print(','.join(str(d) for d in rowdata))
30
31class HTMLTableFormatter(TableFormatter):
32 def headings(self, headers):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected