File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1671,6 +1671,9 @@ FileType objects
16711671 >>> parser.parse_args(['-'])
16721672 Namespace(infile=<_io.TextIOWrapper name='<stdin>' encoding='UTF-8'>)
16731673
1674+ .. versionadded :: 3.4
1675+ The *encodings * and *errors * keyword arguments.
1676+
16741677
16751678Argument groups
16761679^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -495,6 +495,14 @@ The :meth:`~aifc.getparams` method now returns a namedtuple rather than a
495495plain tuple. (Contributed by Claudiu Popa in :issue: `17818 `.)
496496
497497
498+ argparse
499+ --------
500+
501+ The :class: `~argparse.FileType ` class now accepts *encoding * and
502+ *errors * arguments, which are passed through to :func: `open `. (Contributed
503+ by Lucas Maystre in :issue: `11175 `.)
504+
505+
498506audioop
499507-------
500508
You can’t perform that action at this time.
0 commit comments