[issue31535] configparser unable to write comment with a upper cas letter

2018-09-26 Thread Philippe Wagnieres
Philippe Wagnieres added the comment: Thank for your support. Sorry I have no time to give you an answer and work on with Python, but I have understand the solution. Best Regards Philippe Wagnières Chalamont 6 1400 Yverdon-les-Bains Suisse tel.: +41 76 367 27 43 Le 24.09.2018 à 17:42,

[issue31535] configparser unable to write comment with a upper cas letter

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: All config options including comment are converted to lowercase when they are stored. You can customize this behavior using https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.optionxform . You can also refer to

[issue31535] configparser unable to write comment with a upper cas letter

2018-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Ah my bad again. The config.optionxform = str does the trick. I was using an older object. from configparser import ConfigParser config = ConfigParser(allow_no_value=True) config.optionxform = str config.add_section('default_settings')

[issue31535] configparser unable to write comment with a upper cas letter

2018-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Ah sorry, didn't notice it was about comments. It seems config.optionxform = str has no effect on comments. Thanks -- ___ Python tracker

[issue31535] configparser unable to write comment with a upper cas letter

2018-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: All config options are converted to lowercase when they are stored. You can customise this with https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.optionxform. You can customize it more with

[issue31535] configparser unable to write comment with a upper cas letter

2018-09-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31535] configparser unable to write comment with a upper cas letter

2017-09-20 Thread Philippe Wagnieres
New submission from Philippe Wagnieres: I create entry with this: self.settings.set('General', 'Initial filter', 'All file (*.*)') self.settings.set('General', '# 1 => Text files (*.txt)') self.settings.set('General', '# 2 => CSV files (*.csv)') self.settings.set('General', '# 3 =>