Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
44533c4e
Commit
44533c4e
authored
Dec 31, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whatsnew: argparse FileType accepts errors and encodings args.
parent
a697ba0f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Doc/library/argparse.rst
Doc/library/argparse.rst
+3
-0
Doc/whatsnew/3.4.rst
Doc/whatsnew/3.4.rst
+8
-0
No files found.
Doc/library/argparse.rst
View file @
44533c4e
...
@@ -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
^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^
...
...
Doc/whatsnew/3.4.rst
View file @
44533c4e
...
@@ -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
-------
-------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment