cpython: whatsnew: argparse FileType accepts errors and encodings args.
http://hg.python.org/cpython/rev/751c50136ce3 changeset: 88231:751c50136ce3 user: R David Murray <rdmurray@bitdance.com> date: Tue Dec 31 11:18:01 2013 -0500 summary: whatsnew: argparse FileType accepts errors and encodings args. files: Doc/library/argparse.rst | 3 +++ Doc/whatsnew/3.4.rst | 8 ++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1671,6 +1671,9 @@ >>> parser.parse_args(['-']) Namespace(infile=<_io.TextIOWrapper name='<stdin>' encoding='UTF-8'>) + .. versionadded:: 3.4 + The *encodings* and *errors* keyword arguments. + Argument groups ^^^^^^^^^^^^^^^ diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -495,6 +495,14 @@ plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.) +argparse +-------- + +The :class:`~argparse.FileType` class now accepts *encoding* and +*errors* arguments, which are passed through to :func:`open`. (Contributed +by Lucas Maystre in :issue:`11175`.) + + audioop ------- -- Repository URL: http://hg.python.org/cpython
participants (1)
-
r.david.murray