x = getattr(A, 'attr')
