def iterate_attributes(cls):
    keys = dir(cls)
    for key in keys:
        for c in cls.__mro__:
            if key in c.__dict__:
                yield (key, c.__dict__[key])
                break
Looks up an object with the given kwargs, creating one if necessary.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/util/langhelpers.py/iterate_attributes--crossover with--dataset/ETHPy150Open django/django/django/db/models/query.py/QuerySet.get_or_create