[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'
paul j3
report at bugs.python.org
Tue Apr 1 09:43:00 CEST 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue14156>
_______________________________________
More information about the Python-bugs-list
mailing list