This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scrummyin
Recipients scrummyin
Date 2020-06-23.01:28:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592875721.54.0.0419083877118.issue41086@roundup.psfhosted.org>
In-reply-to
Content
The ConfigParser in Lib has a parameter called `interpolation`, that expects an instance of a subclass of Interpolation. However, when ConfigParser is given an argument of an uninstantiated subclass of Interpolation, the __init__ function of ConfigParser accepts it and continues on. This results in a later receiving an error message along the lines of `TypeError: before_set()
missing 1 required positional argument: 'value'` when functions are later called on the ConfigParser instance. This delay between the feedback and the original mistake has led to a few bugs open on the issue tracker (https://bugs.python.org/issue26831 and https://bugs.python.org/issue26469. Both of which were closed after a quick and simple explanation, which can be easily implemented in the library itself. 

I've created a PR for this work and will attach it shortly. Please let me know if there is a better name for the exception other than `InterpolationIsNotInstantiatedError`. It seems long, but also in line with the other Errors already in configparser.
History
Date User Action Args
2020-06-23 01:28:41scrummyinsetrecipients: + scrummyin
2020-06-23 01:28:41scrummyinsetmessageid: <1592875721.54.0.0419083877118.issue41086@roundup.psfhosted.org>
2020-06-23 01:28:41scrummyinlinkissue41086 messages
2020-06-23 01:28:41scrummyincreate