You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
io and _pyio modules require the _io module #62184
io and _pyio modules don't usable without the _io module. In particular when 2.7 build without unicode. Why we have a Python implementation if it can't be used as a fallback when a C implementation is not available?
Activity
serhiy-storchaka commentedon May 15, 2013
io and _pyio modules don't usable without the _io module. In particular when 2.7 build without unicode. Why we have a Python implementation if it can't be used as a fallback when a C implementation is not available?
benjaminp commentedon May 15, 2013
Well, we at least need some C level _fileio.
alex commentedon May 15, 2013
I don't see why we need some C level _fileio, the os module has everythign we need.
benjaminp commentedon May 15, 2013
Patches welcome, of course!
vstinner commentedon Jul 11, 2014
Serhiy implemented the FileIO class in pure Python: see the issue bpo-21859 (patch under review).
pythongh-62184: Remove _pyio import of _io.FileIO
gh-62184: Remove _pyio import of _io.FileIO (gh-134192)
pythongh-62184: Remove _pyio import of _io.FileIO (pythongh-134192)
pythongh-62184: Remove _pyio import of _io.FileIO (pythongh-134192)
[3.13] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-13…
[3.14] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-13…
pythongh-62184: Remove _pyio import of _io.FileIO (pythongh-134192)
pythongh-62184: Remove _pyio import of _io.FileIO (pythongh-134192)
pythongh-62184: Remove _pyio import of _io.FileIO (pythongh-134192)
StanFromIreland commentedon Oct 31, 2025
Triage: Can this be closed?
cmaloney commentedon Oct 31, 2025
_pyio(Python implementation) still does animport iowhich unconditionally imports_io(C implementation) so I'd argue still not pep-399 compliant.pythongh-62184: Remove _pyio import of _io.FileIO (pythongh-134192)