get attribute to getattr

target_1.target_2 = getattr(target1, target2)


Comments

Please log in to add comments