BartC <b...@freeuk.com>: > No it's very easy. In Python terms: > > def f(): return "One" > def g(): return "Two" > > h=f > > h() returns "One". Later you do h=g, and h() returns "Two". No need > for f and g themselves to be dynamic. h just needs to be a variable.
Well, what do you make of this: >>> def f(): return 1 ... >>> g = f >>> def f(): return 2 ... >>> g() 1 >>> f() 2 Marko -- https://mail.python.org/mailman/listinfo/python-list