Commit 44533c4e authored by R David Murray's avatar R David Murray

whatsnew: argparse FileType accepts errors and encodings args.

parent a697ba0f
...@@ -1671,6 +1671,9 @@ FileType objects ...@@ -1671,6 +1671,9 @@ FileType objects
>>> parser.parse_args(['-']) >>> parser.parse_args(['-'])
Namespace(infile=<_io.TextIOWrapper name='<stdin>' encoding='UTF-8'>) Namespace(infile=<_io.TextIOWrapper name='<stdin>' encoding='UTF-8'>)
.. versionadded:: 3.4
The *encodings* and *errors* keyword arguments.
Argument groups Argument groups
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
......
...@@ -495,6 +495,14 @@ The :meth:`~aifc.getparams` method now returns a namedtuple rather than a ...@@ -495,6 +495,14 @@ The :meth:`~aifc.getparams` method now returns a namedtuple rather than a
plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.) 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 audioop
------- -------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment