-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-62184: Remove _pyio import of _io.FileIO #134192
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
Conversation
This was added in the add of `_io`, isn't used since bpo-21859 when a `_pyio` implementation was added which defines `FileIO` lower down in the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test (maybe using the new helper) that _io
isn't imported when importing _pyio
?
A
|
This was added in the add of `_io`, isn't used since bpo-21859 when a `_pyio` implementation was added which defines `FileIO` lower down in the file. (cherry picked from commit 0a68068) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
This was added in the add of `_io`, isn't used since bpo-21859 when a `_pyio` implementation was added which defines `FileIO` lower down in the file. (cherry picked from commit 0a68068) Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
GH-134436 is a backport of this pull request to the 3.13 branch. |
GH-134437 is a backport of this pull request to the 3.14 branch. |
This was added in the add of `_io`, isn't used since bpo-21859 when a `_pyio` implementation was added which defines `FileIO` lower down in the file.
This was added in the add of
_io
, isn't used since bpo-21859 added a Python-native_pyio
implementation ofFileIO
further down in the file.(Happy to add a news, but also don't think there is particularly a user visible change?)
This is the last direct import of
_io
in_pyio
._io
is still imported indirectly (by way ofio
) for io.open_code, io.UnsupportedOperation, and registering_pyio
base abstract classes to the generalio
ones forisinstance
, and several constants (ex. SEEK_SET, ...).