[issue35448] ConfigParser .read() - handling of nonexistent files

Batuhan report at bugs.python.org
Fri Oct 25 15:05:42 EDT 2019


Batuhan <batuhanosmantaskaya at gmail.com> added the comment:

> I do not think that adding an extra parameter to .read() will solve any problem.

There is a use case of this (which some of tools depends) about checking if configuration exists and if not, raising an error. Now, they can solve this by just adding check_exist argument. 

> Changing the default behavior will break existing code.

Can you give an example of how this feature can/could break existing code?

----------

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


More information about the Python-bugs-list mailing list