I am trying to do something like this:
property = \'name\' value = Thing() class A: setattr(A, property, value) other_thing = \'normal attribute\' def __i
You can do it even simpler:
class A(): vars()['key'] = 'value'
In contrast to the previous answer, this solution plays well with external metaclasses (for ex., Django models).