I have an inheritance hierarchy whereby some of the classes have a class property named e.g., 'pickled'. I would like to get A.pickled
if it exists or None if not — even if A derives from many classes including e.g., B and B.pickled
exists (or not).
Right now my solution crawls A
's __mro__
. I would like a cleaner solution if possible.