class documentation

class TextIO(BytesIO):

View In Hierarchy

Helper IO class.

Writes encode strings to bytes if needed, reads return bytes. This makes it easier to emulate files opened in binary mode without needing to explicitly convert strings to bytes in setting up the test data.

Method __init__ Undocumented
Method write Undocumented
Method writelines Undocumented
def __init__(self, s=''):

Undocumented

def write(self, s):

Undocumented

def writelines(self, lines):

Undocumented