[issue46770] ConfigParser(dict_type=) not behaving as expected

2022-02-17 Thread Mark Lonnemann
Mark Lonnemann added the comment: I know, thanks though. I just thought there was a way to do it via dict_type=. I've read it can be done, but is complex. I've yet to see any examples of how. -- ___ Python tracker <https://bugs.python.

[issue46770] ConfigParser(dict_type=) not behaving as expected

2022-02-16 Thread Mark Lonnemann
New submission from Mark Lonnemann : ConfigParser() is not using a custom dictionary class correctly, according to my understanding. I have duplicate options in a config file that I want to rename uniquely. The following code does not work. x = 0 class MultiDict(dict): def __setitem__