(
            self, number, filespec, filetype, mode, access, lock,
            reclen, seg, offset, length, field
        )
Open a file on the internal disk drive.
Open a file on the internal disk drive.
Open a file on the internal disk drive .
def open(
            self, number, filespec, filetype, mode, access, lock,
            reclen, seg, offset, length, field
        ):
        """Open a file on the internal disk drive."""
        if filespec in self._bound_files:
            fhandle = self._bound_files[filespec].get_stream(filetype, mode)
            try:
                return self._create_file_object(fhandle, filetype, mode)
            except EnvironmentError as e:
                raise
                handle_oserror(e)
        else:
            return DiskDevice.open(
                self, number, filespec, filetype, mode, access, lock,
                reclen, seg, offset, length, field
            )
def open ( self , number , filespec , filetype , mode , access , lock , reclen , seg , offset , length , field ) : if filespec in self . _bound_files : fhandle = self . _bound_files [ filespec ] . get_stream ( filetype , mode ) try : return self . _create_file_object ( fhandle , filetype , mode ) except EnvironmentError as e : raise handle_oserror ( e ) else : return DiskDevice . open ( self , number , filespec , filetype , mode , access , lock , reclen , seg , offset , length , field )