ConfigParser lower-cases options automatically?

Jarek Zgoda jzgoda at gazeta.usun.pl
Sun Nov 23 19:56:29 CET 2003


Matthew Wilson <mwilson at sarcastic-horse.com> pisze:

> I wonder if this is something intentionally built-in to ConfigParser in
> order to remove case-sensitivity issues that are variable across
> platforms.  Does anyone else have any comments or ideas?  I don't need
> case-sensitivity in my script, but I am puzzled by this behavior.

Yes, I think it was intentional. Check optionxform() in Python
documentation to get an idea how to make ConfigParser case sensitive.

-- 
Jarek Zgoda
Unregistered Linux User #-1
http://www.zgoda.biz/ JID:zgoda at chrome.pl http://zgoda.jogger.pl/




More information about the Python-list mailing list