I have an inheritance hierarchy in which some of the classes have a class property, such as pickled. I would like to get A.pickledif it exists, or None if not, even if A comes from many classes, including, for example, B and B.pickled(or not).
Now my solution is scanning A __mro__. I would like, if possible, a cleaner solution.
source
share