Skip to content

gh-91526: io: Remove device encoding support from TextIOWrapper #91529

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 4 commits into from
Apr 19, 2022

Conversation

methane
Copy link
Member

@methane methane commented Apr 14, 2022

TextIOWrapper.__init__ called os.device_encoding(file.fileno()) if fileno is 0-2.

It was complex, never documented, and didn't work for most cases.

methane added 2 commits April 14, 2022 18:07
`TextIOWrapper.__init__` calls `os.device_encoding(file.fileno())` if
fileno is 0-2. But it is very rerely works, and never documented
behavior.
@methane methane linked an issue Apr 14, 2022 that may be closed by this pull request
@methane methane merged commit 6fdb62b into python:main Apr 19, 2022
@methane methane deleted the device-encoding2 branch April 19, 2022 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove console encoding support from TextIOWrapper.
2 participants