mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
whatsnew: argparse FileType accepts errors and encodings args.
This commit is contained in:
parent
2bc930f044
commit
fced3ec2db
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue