Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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