Wed Nov 5 14:34:34 EST 2008

ConfigParser not case sensitive

This has had me perplexed for a few hours now and so different from my expectation of things that I generally consider well thought-out and programmed that it warrants comment.

In Python the ConfigParser module provides for easy reading in of a config file having key-value pairs. It’s a handy tool, but surprising the keys in the key-value pairs are not case sensitive (everything gets converted to lower case). This is the kind of mistake that I don’t expect in Python. Err.


Posted by vschmidt | Permanent link | File under: python