(
            self, number, param, filetype, mode, access, lock,
            reclen, seg, offset, length, field
        )
return new_file
Open a file on the device.
Open a file on the device.
Open a file on the device .
def open(
            self, number, param, filetype, mode, access, lock,
            reclen, seg, offset, length, field
        ):
        """Open a file on the device."""
        if not self.device_file:
            raise error.BASICError(error.DEVICE_UNAVAILABLE)
        if mode not in self.allowed_modes:
            raise error.BASICError(error.BAD_FILE_MODE)
        new_file = self.device_file.open_clone(filetype, mode, reclen)
        return new_file
def open ( self , number , param , filetype , mode , access , lock , reclen , seg , offset , length , field ) : if not self . device_file : raise error . BASICError ( error . DEVICE_UNAVAILABLE ) if mode not in self . allowed_modes : raise error . BASICError ( error . BAD_FILE_MODE ) new_file = self . device_file . open_clone ( filetype , mode , reclen ) return new_file