answered 2023-07-05 06:39:02 +0000
Assuming "m" is the name of the member variable and "x" is the value to be set, a one-line solution using a loop is:
for obj in list: obj.m = x