Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
It would be better to name it keepends and set it True by default. I wanted this feature. The problem is that it is not just concrete implementation, it is an interface. Adding new parameters for IOBase methods will break all IOBase subclasses. And there are IOBase subclasses in third-party code. It is also not good for file-like classes which do not inherit IOBase, but implement a part of methods. You can't start to use new arguments in your code if you accepted arbitrary file-like objects that have methods read() and readline(). ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39863> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com