On 2007-08-06, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-08-06, Lee Fleming <[EMAIL PROTECTED]> wrote: >> def f(x, y=None): >> if y is None: y = [] >> y.append(x) >> return y > > >>> f(f(23)) > [23, 42]
Sorry. That should've been: >>> f(42, f(23)) [23, 42] -- Neil Cerutti Scouts are saving aluminum cans, bottles, and other items to be recycled. Proceeds will be used to cripple children. --Church Bulletin Blooper -- http://mail.python.org/mailman/listinfo/python-list