class documentation

class _FixupStream:

View In Hierarchy

The new io interface needs more from streams than streams traditionally implement. As such, this fix-up code is necessary in some circumstances.

The forcing of readable and writable flags are there because some tools put badly patched objects on sys (one such offender are certain version of jupyter notebook).

Method __getattr__ Undocumented
Method __init__ Undocumented
Method read1 Undocumented
Method readable Undocumented
Method seekable Undocumented
Method writable Undocumented
Instance Variable ​_force​_readable Undocumented
Instance Variable ​_force​_writable Undocumented
Instance Variable ​_stream Undocumented
def __getattr__(self, name):

Undocumented

Parameters
name:strUndocumented
Returns
t.AnyUndocumented
def __init__(self, stream, force_readable=False, force_writable=False):

Undocumented

Parameters
stream:t.BinaryIOUndocumented
force​_readable:boolUndocumented
force​_writable:boolUndocumented
def read1(self, size):

Undocumented

Parameters
size:intUndocumented
Returns
bytesUndocumented
def readable(self):

Undocumented

Returns
boolUndocumented
def seekable(self):

Undocumented

Returns
boolUndocumented
def writable(self):

Undocumented

Returns
boolUndocumented
_force_readable =

Undocumented

_force_writable =

Undocumented

_stream =

Undocumented