[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 

___
___
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 Eric V. Smith

Eric V. Smith added the comment:

Can you show us the code that causes the problem?

--
nosy: +eric.smith

___
Python tracker 

___
___
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 

___
___
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 R. David Murray

Changes by R. David Murray :


--
nosy: +lukasz.langa

___
Python tracker 

___
___
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-02 Thread Łukasz Langa

Łukasz Langa added the comment:

This is indeed deliberate. If that's unsuitable for you, consider using:

  cp = ConfigParser()
  cp.optionxform = lambda option: option

as described in 
http://docs.python.org/3/library/configparser.html#configparser.optionxform

--
assignee:  -> lukasz.langa
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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