examples/other/data_clean.ini
[person]
fname = Foo
lname=Bar
phone =    123

# comment

      # deep comment


[company]
name = Acme Corp.
phone = 456

examples/other/config_parsing.py
#!/usr/bin/python

import ConfigParser
import sys

def parse():
  if len(sys.argv) != 2:
    print "Usage: " + sys.argv[0] + "  FILEAME"
    exit()
  filename = sys.argv[1]

  cp = ConfigParser.RawConfigParser()
  cp.read(filename)
  return cp

ini = parse()

for section in ini.sections():
  print section
  for v in ini.items(section):
    print "  {}  = {}".format(v[0], v[1])