Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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 inthe 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
cmaloney commentedMay 19, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
|
0a68068
intopython:mainUh oh!
There was an error while loading.Please reload this page.
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 inthe file.(cherry picked from commit0a68068)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 inthe file.(cherry picked from commit0a68068)Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
GH-134436 is a backport of this pull request to the3.13 branch. |
GH-134437 is a backport of this pull request to the3.14 branch. |
Uh oh!
There was an error while loading.Please reload this page.
This was added in the add of
_io
, isn't used sincebpo-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, ...).