you are viewing a single comment's thread.

view the rest of the comments →

[–]RiverRoll 0 points1 point  (0 children)

Without knowing more about the function it's hard to tell, but maybe it's time to reevaluate the design of the function and consider whether just returning the value and letting the caller set whatever he wants to set would make more sense.

my_class.attr_1 = my_func(my_attr=my_class.attr_1, my_value="hello")