def get_base_type(self, name):
        try:
            return self.type_map[name]
        except KeyError:
            pass

        try:
            return self.builtin_type_map[name]
        except KeyError:
            pass

        try:
            return self.forward_map[name]
        except KeyError:
            pass

        try:
            kind, value = self.map[name]
        except KeyError:
            if name.startswith('struct '):
                return AnonymousStruct
            elif name.startswith('union '):
                return AnonymousUnion
            else:
                raise RuntimeError(name % 'FFI contains no type "%s"')

        if kind == 'typedef':
            return self.get_type(value)
        elif kind == 'enum':
            return self.get_enum_type(name, value)
        elif kind == 'struct':
            return self.get_class_type(name, value, c.Structure)
        elif kind == 'union':
            return self.get_class_type(name, value, c.Union)
        else:
            raise RuntimeError(kind)
dataset/ETHPy150Open ardekantur/pyglet/experimental/swigtypes/ffi.py/FFILibrary.get_base_type/swapped operands of `%`