'Decorate the fallback implementation of __getattr__ for type *ty*.
The decorated implementation will have the signature
(context, builder, typ, val, attr).  The implementation is
called for attributes which haven\'t been explicitly registered
with lower_getattr().'

def lower_getattr_generic(self, ty):

    return self.lower_getattr(ty, None)
