← index #5570Issue #4299
Related · high · value 0.333
QUERY · ISSUE

FileIO is not a subclass of IOBase

openby tveopened 2020-01-24updated 2021-09-26
py-core

E.g.:

>>> f = open("boot.py", 'rb')
>>> f
<io.FileIO 3ffe6480>
>>> import io
>>> isinstance(f, io.IOBase)
False

Needless to say, the result in CPython is True.

CANDIDATE · ISSUE

py/modio.c Can this be made to work in Unix build?

closedby peterhinchopened 2018-11-10updated 2018-11-15

The ability to subclass io.IOBase is unavailable under Unix. It would be good if this were remedied.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied