| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Would you add NEWS entry?
Sorry, something went wrong.
Apologies, I thought that would not be necessary. Done now. |
Sorry, something went wrong.
…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>
|
GH-111935 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
GH-111936 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
…thon#111370) Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder.
…thon#111370) Add DEFAULT_BUFFER_SIZE, text_encoding, and IncrementalNewlineDecoder.
| Back | FazBrowse Home | New Git URL |
This change updates io.__all__ with three missing public and documented entries: text_encoding(), DEFAULT_BUFFER_SIZE, and IncrementalNewlineDecoder.
As suggested by @AlexWaygood, I have also updated the tests to check __all__ using test.support.check__all__(). As a matter of fact, there already was test__all__() in MiscIOTest, which ostensibly checked that all exported symbols existed. It seems like the test was also designed to check some properties of the exported objects; however, these existing checks failed for me.
I have removed the existing checks and replaced them with the suggest check__all__(). I am using a few new attributes to tailor the test to CMiscIOTest and PyMiscIOTest, respectively.
Since I don't understand why existing tests would fail, some extra attention might be warranted here. There is also another detail of possible interest: IncrementalNewlineDecoder was not added to io.__all__, but was added to all_members in the test setup. This could indicate an intentional omission (albeit 15 years ago).