[issue32581] A bug of the write funtion of ConfigParser.py

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: I trued this on 3.11/Windows and 3.10/Linux and could not reproduce the issue. The Password remained "" in both cases. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread jiangjinhu
jiangjinhu added the comment: But accidentally,with the "password = "" " in the configure files ,which are called by my services, the service will start successfully,and with "password = ",the services can not.On the other hand ,I just set the option "addr =

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread R. David Murray
R. David Murray added the comment: I'll defer to Lukasz, but I don't believe this is a bug. An empty value and a value of "" are equivalent in config.ini syntax, as far as I know. -- nosy: +lukasz.langa ___ Python tracker

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread jiangjinhu
jiangjinhu added the comment: The configure file "test.ini": [section_a] addr = "127.0.0.1" password = "" Change the value of addr by the "test.py": import ConfigParser tmpfile = "test.ini" conf = ConfigParser.ConfigParser() conf.read(tmpfile) conf.set("section_a",

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread jiangjinhu
jiangjinhu added the comment: def write(self, fp): """Write an .ini-format representation of the configuration state.""" if self._defaults: fp.write("[%s]\n" % DEFAULTSECT) for (key, value) in self._defaults.items():

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread R. David Murray
R. David Murray added the comment: Please provide a way to reproduce the problem you are observing. There is insufficient information here so far to understand the problem. -- nosy: +r.david.murray ___ Python tracker

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread jiangjinhu
New submission from jiangjinhu : By the write funtion of ConfigParser.py,the partial content of the configue will change. -- components: Library (Lib) messages: 310168 nosy: jiangjinhu666 priority: normal severity: normal status: open title: A bug of the write