def regs(self, to_dump=None):
        """Return the name and values of the registers

        :returns: [(reg_name, value)] -- A :class:`list` of :class:`tuple`"""
        res = []
        if to_dump is None:
            to_dump = self.default_dump
        for name in to_dump:
            value = getattr(self, name)
            if name in self.special_reg_type:
                value = self.special_reg_type[name](value)
            res.append((name, value))
        return res
dataset/ETHPy150Open hakril/PythonForWindows/windows/winobject/exception.py/ECONTEXTBase.regs/original