[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Why only sections? ConfigParser contains a lot of other information. Indeed, the defaults might be useful too. Other things like options can be sessions specific and could clutter the repr if added. Would defaults() and sections() be the right behavior between

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why only sections? ConfigParser contains a lot of other information. Section names you can get by calling the sections() method. >>> config.sections() ['sec'] -- nosy: +serhiy.storchaka ___ Python tracker

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- title: Import configparser.ConfigParser repr -> Improve configparser.ConfigParser repr ___ Python tracker ___ __