[issue17608] configparser not honouring section but not variable case

2013-03-31 Thread Rodney Persky

New submission from Rodney Persky:

Hey,

Just a fairly small one in the configparser library. I've got a bunch of 
variables with varying capitalisation to indicate words in the variable name.

The config file contains lines such as:
[GlobalSection]
ParameterDelimiterCharacter = ,


Watching the program, at some point (this is straight from a for loop) the 
capitalisation gets lost:
Looking for ['GlobalSection', 'parameterdelimitercharacter']

--
components: Library (Lib), Windows
messages: 185718
nosy: Rodney.Persky
priority: normal
severity: normal
status: open
title: configparser not honouring section but not variable case
type: behavior
versions: Python 3.3

___
Python tracker 
<http://bugs.python.org/issue17608>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17608] configparser not honouring section but not variable case

2013-04-01 Thread Rodney Persky

Rodney Persky added the comment:

I'd probably revise this to say it's a quirk - not a bug. As looking over

https://bitbucket.org/ambv/configparser/src/4bf6a6d8ebdf6eec068750a2b940944a9b1b2938/configparser.py?at=default

(the configparser source) information is converted to .lower(). So it seems 
intended for some reason.

Attached is a snippet of code that will reproduce the bug in the context of my 
app.

--
Added file: http://bugs.python.org/file29645/Bug16708.py

___
Python tracker 
<http://bugs.python.org/issue17608>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com