classification
Title: configparser.write() does not save comments.
Type: behavior Stage:
Components: Extension Modules Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: lukasz.langa, martin.panter, pebaudhi
Priority: normal Keywords:

Created on 2018-05-13 10:26 by pebaudhi, last changed 2018-05-14 09:43 by martin.panter.

Messages (2)
msg316457 - (view) Author: David James Peters (pebaudhi) Date: 2018-05-13 10:25
The ConfigParser().write() does not save the comments; this makes using comments harder because it requires a separate demo ini file the user must be able to locate and read from without learning anything from the INI file they are using. Not Good. Pls make configparser save the comments or guide me to what I can do to fully support comments in my app. I am still reading the configparser documentation but it says its heavily customizable. Saving and loading comments is a must for my ini files.
msg316497 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2018-05-14 09:43
Looks like Issue 1410680 has a new function to merge comments with new config values (among other things).
History
Date User Action Args
2018-05-14 09:43:38martin.pantersetnosy: + martin.panter
messages: + msg316497
2018-05-13 11:26:58r.david.murraysetnosy: + lukasz.langa
2018-05-13 10:26:00pebaudhicreate