Skip to content

Add encoding & errors parameters to fileinput - #5558

Merged
srittau merged 3 commits into
python:masterfrom
lancelote:fileinput-enc-err
May 31, 2021
Merged

Add encoding & errors parameters to fileinput#5558
srittau merged 3 commits into
python:masterfrom
lancelote:fileinput-enc-err

Conversation

@lancelote

Copy link
Copy Markdown
Contributor

Optional encoding and errors parameters were added in Python 3.10 to

  • fileinput.input()
  • fileinput.FileInput()
  • fileinput.hook_compressed()

Links

Note: use Python 3.10b1 for testing instead of 3.10a7.

`fileinput.input()`, `fileinput.FileInput()`, and
`fileinput.hook_compressed()` have two optional extra parameters
`encoding` and `errors` in Python 3.10

@srittausrittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, remarks below.

Comment threadstdlib/fileinput.pyi Outdated
@github-actions

This comment has been minimized.

@lancelote

Copy link
Copy Markdown
ContributorAuthor

@srittau Thank you for the review, and sorry for the mistake 🙇🏻‍♂️

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit ef15088 into python:masterMay 31, 2021
@lancelote
lancelote deleted the fileinput-enc-err branch May 31, 2021 17:36
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@lancelote@srittau