def get(self, name=REG_UNNAMED):
        # We accept integers or strings a register names.
        name = str(name)
        assert len(str(name)) == 1, "Register names must be 1 char long."

        # Did we request a special register?
        if name == REG_BLACK_HOLE:
            return
        elif name == REG_FILE_NAME:
            try:
                return [self.view.file_name()]
            except __HOLE__:
                return ''
        elif name in REG_SYS_CLIPBOARD_ALL:
            return [sublime.get_clipboard()]
        elif ((name not in (REG_UNNAMED, REG_SMALL_DELETE)) and
                (name in REG_SPECIAL)):
            return
        # Special case lumped among these --user always wants the sys
        # clipboard.
        elif ((name == REG_UNNAMED) and
              (self.settings.view['vintageous_use_sys_clipboard'] is True)):
            return [sublime.get_clipboard()]

        # If the expression register holds a value and we're requesting the
        # unnamed register, return the expression register and clear it
        # aftwerwards.
        elif name == REG_UNNAMED and _REGISTER_DATA.get(REG_EXPRESSION, ''):
            value = _REGISTER_DATA[REG_EXPRESSION]
            _REGISTER_DATA[REG_EXPRESSION] = ''
            return value

        # We requested an [a-z0-9"] register.
        if name.isdigit():
            if name == '0':
                return _REGISTER_DATA[name]
            return _REGISTER_DATA['1-9'][int(name) - 1]
        try:
            # In Vim, "A and "a seem to be synonyms, so accept either.
            return _REGISTER_DATA[name.lower()]
        except KeyError:
            pass
dataset/ETHPy150Open guillermooo/Vintageous/vi/registers.py/Registers.get