[PYTHON] Case sensitive when reading and writing INI files

Python standard INI file parser By default, option names are not case sensitive (automatically converted to lowercase when output). How to change this default behavior to a case-sensitive behavior.

import ConfigParser # Python 2.x
import configparser # Pyrhon 3.x

cfgparser = ConfigParser()
cfgparser.optionxform = str

Recommended Posts

Case sensitive when reading and writing INI files
Reading and writing csv files
Reading and writing JSON files with Python
Study from Python Reading and writing Hour9 files
Reading and writing CSV and JSON files in Python
Reading and writing fits files with Python (memo)
[Introduction for beginners] Reading and writing Python CSV files
Python CSV file reading and writing
Reading and writing NetCDF with Python
Reading and writing CSV with Python
Reading and writing text in Python
Permission error when reading Django upload files
Character code for reading and writing csv files with python ~ windows environment ver ~
Split files when writing vim plugin in python
Example of reading and writing CSV with Python