-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
text_encoding() is missing from io.__all__ #111356
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
Comments
The function was added in #19481, by @methane. It looks to me like this was just an accidental omission, rather than something that's been deliberately excluded from Possibly we could also add a test to cpython/Lib/test/test_inspect/test_inspect.py Lines 125 to 126 in b0699aa
|
Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder.
…thonGH-111370) Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder. (cherry picked from commit baeb771) Co-authored-by: Nicolas Tessore <n.tessore@ucl.ac.uk>
…thonGH-111370) Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder. (cherry picked from commit baeb771) Co-authored-by: Nicolas Tessore <n.tessore@ucl.ac.uk>
Fixed and backported, thanks for the issue! |
…thon#111370) Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder.
…thon#111370) Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder.
Bug report
Bug description:
The public
io.text_encoding()
function is missing fromio.__all__
.CPython versions tested on:
3.10, 3.11, 3.12
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: