Given a function:
def A(a, b, c): a *= 2 b *= 4 c *= 8 return a+b+c
How can I set the \'c\' var to be called-by-reference,
All calls in Python are "by reference". Integers are immutable in Python. You can't change them.
class C: def __init__(self, c): self.c = c def __call__(self, a, b): a *= 2 b *= 4 self.c *= 8 return a + b + self.c
A = C(1) print A(1, 1), A.c print A(1, 1), A.c
14 8 70 64