[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

Matt Joiner report at bugs.python.org
Wed Feb 29 12:01:11 CET 2012


New submission from Matt Joiner <anacrolix at gmail.com>:

If an argument of '-' is handled by argparse.FileType, it defaults to sys.stdin. However a mode of 'rb' is ignored, the returned file object does not work with raw bytes.

----------
components: Library (Lib)
messages: 154612
nosy: anacrolix
priority: normal
severity: normal
status: open
title: argparse.FileType for '-' doesn't work for a mode of 'rb'
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14156>
_______________________________________


More information about the Python-bugs-list mailing list