[New-bugs-announce] [issue24739] allow argparse.FileType to accept newline argument

Gary Peck report at bugs.python.org
Tue Jul 28 04:08:44 CEST 2015


New submission from Gary Peck:

argparse.FileType should support a "newline" argument that corresponds to the "newline" parameter to open(). In addition to more closely mirroring the open() API, this is also needed to properly use argparse.FileType with csv.reader() or csv.writer() (which require the file being passed in to have been opened with newline='').

----------
components: Library (Lib)
messages: 247497
nosy: garyp
priority: normal
severity: normal
status: open
title: allow argparse.FileType to accept newline argument
type: enhancement
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list