On Dec 7, 2:54 am, [EMAIL PROTECTED] wrote: > How can I make a "var" parm, where the called function can modify > the value of the parameter in the caller? > > def f(x): > x = x + 1 > > n = 1 > f(n) > # n should now be 2
You can't. 'n' would need a 'set_to' method, which it doesn't have. Otherwise, that's not what the equal sign does. -- http://mail.python.org/mailman/listinfo/python-list