Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue35448> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com