New submission from Chris Bradbury <viff3...@gmail.com>: According to `ConfigParser.items` docs:
> When section is not given, return a list of section_name, section_proxy > pairs, including DEFAULTSECT. > Otherwise, return a list of name, value pairs for the options in the given > section. Optional arguments have the same meaning as for the get() method. https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.items However due to `d = self._defaults.copy()` on line 843 of configparser.py the default section is always included, even when a section argument is specified. ---------- messages: 315608 nosy: chrBrd priority: normal severity: normal status: open title: ConfigParser.items returns items present in `DEFAULTSECT` when section argument given. type: behavior versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33333> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com