[issue35954] Incoherent type conversion in configparser

2019-02-10 Thread Adeokkuw
Adeokkuw added the comment: Btw: The name "read_dict" [1] as well as its docstring say exactly the opposite of what it does. It acts as a "save_dict". Maybe that can be fixed on the go ... The docstring """ [...] All types held in the dictionary are

[issue35954] Incoherent type conversion in configparser

2019-02-10 Thread Adeokkuw
New submission from Adeokkuw : configparser interface implicitly converts all objects to str (read_dict [sic] on line 724 of "3.7/Lib/configparser.py") while saving but not while lookup (__getitem__ on line 956). MWE: ``` config = configparser.ConfigParser() config[123] = {} pr