paul j3 added the comment: A related issue http://bugs.python.org/issue13824 "argparse.FileType opens a file and never closes it"
I proposed a FileContext class that returns a `partial(open, filename,...)' context object. The issues of how to deal with stdin/out are similar. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14156> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com