Jonathan Slenders added the comment: Niki Spahiev made a valid argument saying that the following code is common:
if not hasattr(src, 'read'): src = open(src) This will break if we name it 'read'/'write' like the methods of a file object. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24536> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com