examples/csv/dialects.py
from __future__ import print_function
import csv

for dname in csv.list_dialects():
    print(dname)
    d = csv.get_dialect(dname)
    for n in ['delimiter', 'doublequote', 'escapechar',
            'lineterminator', 'quotechar',
            'quoting', 'skipinitialspace', 'strict']:
        attr = getattr(d, n)
        if attr == '\t':
            attr = '\\t'
        if attr == '\r\n':
            attr = '\\r\\n'
        print("  {:16} '{}'".format(n, attr))

examples/csv/dialects.out
excel-tab
  delimiter        '\t'
  doublequote      '1'
  escapechar       'None'
  lineterminator   '\r\n'
  quotechar        '"'
  quoting          '0'
  skipinitialspace '0'
  strict           '0'
excel
  delimiter        ','
  doublequote      '1'
  escapechar       'None'
  lineterminator   '\r\n'
  quotechar        '"'
  quoting          '0'
  skipinitialspace '0'
  strict           '0'