Re: Dynamic annotations
Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Dynamic-annotations-tp456p465.html
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