(self, bitstream)
Initialise file on tape.
Initialise file on tape.
Initialise file on tape .
def __init__(self, bitstream):
        """Initialise file on tape."""
        self.bitstream = bitstream
        # is a file open on this stream?
        self.is_open = False
        # keep track of last seg, offs, length to reproduce GW-BASIC oddity
        self.last = 0, 0, 0
        self.buffer_complete = False
        self.length = 0
        self.filetype = b''
        self.rwmode = ''
def __init__ ( self , bitstream ) : self . bitstream = bitstream # is a file open on this stream? self . is_open = False # keep track of last seg, offs, length to reproduce GW-BASIC oddity self . last = 0 , 0 , 0 self . buffer_complete = False self . length = 0 self . filetype = b'' self . rwmode = ''