[Baypiggies] ConfigParser

Rohan Talip rohan.talip at gmail.com
Thu Nov 4 04:28:43 CET 2010


It is possible to make ConfigParser case sensitive.

Search for optionxform on http://docs.python.org/library/configparser.html

i.e.

cfgparser = ConfigParser()
...
cfgparser.optionxform = str


Rohan


On Wed, Nov 3, 2010 at 7:13 PM, <akleider at sonic.net> wrote:

> I've just discovered the the ConfigParser module converts it's dictionary
> key:value pairs all into lower case.
> Why?
> Is there a way to get the same functionality (another module perhaps) that
> respects case?
>
> alexK
>
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20101103/5ece8a0a/attachment.html>


More information about the Baypiggies mailing list