Kaydet (Commit) fced3ec2 authored tarafından R David Murray's avatar R David Murray

whatsnew: argparse FileType accepts errors and encodings args.

üst 2bc930f0
......@@ -1671,6 +1671,9 @@ FileType objects
>>> parser.parse_args(['-'])
Namespace(infile=<_io.TextIOWrapper name='<stdin>' encoding='UTF-8'>)
.. versionadded:: 3.4
The *encodings* and *errors* keyword arguments.
Argument groups
^^^^^^^^^^^^^^^
......
......@@ -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`.)
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
-------
......
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