[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-04-02 Thread miss-islington
miss-islington added the comment: New changeset 9a838c593f6ada69a37025d7ded8ac822816a74c by Miss Islington (bot) in branch '3.7': bpo-35838: document optionxform must be idempotent (GH-12656) https://github.com/python/cpython/commit/9a838c593f6ada69a37025d7ded8ac822816a74c -- nosy:

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-04-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +12586 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-04-02 Thread Inada Naoki
Inada Naoki added the comment: New changeset 04694a306b8f4ab54ef5fc4ba673c26fa53b0ac1 by Inada Naoki in branch 'master': bpo-35838: document optionxform must be idempotent (GH-12656) https://github.com/python/cpython/commit/04694a306b8f4ab54ef5fc4ba673c26fa53b0ac1 -- __

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-04-02 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12585 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-03-07 Thread Inada Naoki
Inada Naoki added the comment: I sent a mail to python-dev ML. https://mail.python.org/pipermail/python-dev/2019-March/156613.html -- ___ Python tracker ___ __

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-03-05 Thread Inada Naoki
Inada Naoki added the comment: It seems twice call of `optionxform` is not avoidable when read-and-write workflow. I'm not against about fixing readdict. But I don't think configparser supports non-idempotent optionxform. >>> import configparser >>> cfg = configparser.ConfigParser() >>> cfg.o

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch, patch pull_requests: +11707, 11708 stage: -> patch review ___ Python tracker ___

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch, patch, patch pull_requests: +11707, 11708, 11709 stage: -> patch review ___ Python tracker ___ __

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +11707 stage: -> patch review ___ Python tracker ___ ___ Py

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be a bug with read_dict which is used internally when a dictionary is directly assigned. In read_dict optionxform is called with key [0] to check for duplicate and the transformed value is again passed to self.set which also calls opt

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-28 Thread INADA Naoki
INADA Naoki added the comment: I think it's easy to solve this particular case. But there may be some other cases. optionxform must be idempotent? If so, this is document issue. -- nosy: +inada.naoki ___ Python tracker

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-27 Thread Phil Kang
New submission from Phil Kang : ConfigParser calls ConfigParser.optionxform twice per each key when assigning a dictionary to a section. The following code: ini = configparser.ConfigParser() ini.optionxform = lambda x: '(' + x + ')' # Bugged ini['section A'] = {'key 1': '