Python Set Atrybut według nazwy ciągu

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