STINNER Victor added the comment: > fl = contextlib.closing(open(sys.argv[1]))
I prefer the current code with the explicit close() and "is not sys.stdin", it's less magic :-) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18644> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com