[issue36023] Import configparser.ConfigParser repr

Rémi Lapeyre report at bugs.python.org
Mon Feb 18 08:13:28 EST 2019


New submission from Rémi Lapeyre <remi.lapeyre at henki.fr>:

This is the current repr of the configparser.ConfigParser instances:

>>> import configparser
>>> config = configparser.ConfigParser()
>>> config['sec'] = {}
>>> config
<configparser.ConfigParser object at 0x10b656ad0>


I think this could be improved to read:

<ConfigParser sections=('sec',)>

----------
components: Library (Lib)
messages: 335831
nosy: remi.lapeyre
priority: normal
severity: normal
status: open
title: Import configparser.ConfigParser repr
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36023>
_______________________________________


More information about the Python-bugs-list mailing list