Torsten Mohr <[EMAIL PROTECTED]> writes: > i'd like to pass a reference or a pointer to an object > to a function. The function should then change the > object and the changes should be visible in the calling > function.
Normally you would pass a class instance or boxed object, and let the
function change the instance or object:
def bump(b):
b[0] += 123 # change
x = [5]
bump(x)
print x # prints [128]
--
http://mail.python.org/mailman/listinfo/python-list
