Atribut Set Python dengan nama string

setattr(some_object, 'some_attribute', 42)
Arno Deceuninck