for name, value in attrs:
    clsdict[name] = value
attrnames.append(name)
clsdict['_attrs_'] = attrnames
return super(OrderedTypeMeta, mcls).__new__(mcls, clsname, bases, clsdict)


class User(DataStructure, metaclass=OrderedTypeMeta):
    pass
_attrs_ = ('name', StringValue()), ('password', StringValue()), ('age',
    IntegerValue())
How do I get the definition order of class attributes in Python?