def set(self, name, values):

        # We accept integers as register names.
        name = str(name)
        assert len(str(name)) == 1, "Register names must be 1 char long: " + name

        if name == REG_BLACK_HOLE:
            return

        assert isinstance(values, list), \
            "Register values must be inside a list."
        # Coerce all values into strings.
        values = [str(v) for v in values]

        # Special registers and invalid registers won't be set.
        if (not (name.isalpha() or name.isdigit() or
                 name.isupper() or name == REG_UNNAMED or
                 name in REG_SYS_CLIPBOARD_ALL or
                 name == REG_EXPRESSION or
                 name == REG_SMALL_DELETE)):
                    # Vim fails silently.
                    # raise Exception("Can only set a-z and 0-9 registers.")
                    return None

        _REGISTER_DATA[name] = values

        if name not in (REG_EXPRESSION,):
            self._set_default_register(values)
            self._maybe_set_sys_clipboard(name, values)
Search Tags for entries matching 'query'
dataset/ETHPy150Open guillermooo/Vintageous/vi/registers.py/Registers.set--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/nipap/nipap/backend.py/Nipap.search_tag