Administrator
|
Hello,
You should use getattr:
getattr(my_class, var)
(__getattr__ works for individuals but not classes, because on a class, you get the class function that should be applied on individuals, not the metaclass bound method).
Best regards,
Jean-Baptiste Lamy
MCF HDR, Laboratoire LIMICS, Université Paris 13
|