Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add encoding & errors parameters to fileinput #5558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 31, 2021

Conversation

lancelote
Copy link
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
Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks, remarks below.

@github-actions

This comment has been minimized.

@lancelote
Copy link
Contributor Author

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

@github-actions
Copy link
Contributor

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

@srittau srittau merged commit ef15088 into python:master May 31, 2021
@lancelote lancelote deleted the fileinput-enc-err branch May 31, 2021 17:36
Sign up for free to 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