[issue35448] ConfigParser .read() - handling of nonexistent files
Serhiy Storchaka
report at bugs.python.org
Fri Oct 25 08:45:24 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
I do not think that adding an extra parameter to .read() will solve any problem.
You need to read the documentation of read() to use this feature. You need to change your code, and this will work only in new version of Python, so you will need to support two versions of the code in any way. If you change your code, it is easier to make it using read_file(), this way is compatible with old Python versions, and you can use it today.
If you do not read the documentation and do not change your code this feature cannot help you. Changing the default behavior will break existing code.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35448>
_______________________________________
More information about the Python-bugs-list
mailing list