Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add encoding & errors parameters to fileinput#5558

Merged
srittau merged 3 commits into
python:masterpython/typeshed:masterfrom
lancelote:fileinput-enc-errlancelote/typeshed:fileinput-enc-errCopy head branch name to clipboard
May 31, 2021
Merged

Add encoding & errors parameters to fileinput#5558
srittau merged 3 commits into
python:masterpython/typeshed:masterfrom
lancelote:fileinput-enc-errlancelote/typeshed:fileinput-enc-errCopy head branch name to clipboard

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

@srittau srittau 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 thread stdlib/fileinput.pyi Outdated
@github-actions

This comment has been minimized.

@lancelote

Copy link
Copy Markdown
Contributor Author

@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: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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.