On Sat, 02 Apr 2005 18:39:41 GMT, Ron_Adam <[EMAIL PROTECTED]> wrote:
>>def foo(): >> a = 10 >> def bar(): >> return a*a >> return bar >> >>print foo()() <--------------- *Here* >> >> >>No decorator-specific magic here - just references kept to outer frames >>which form the scope for the inner function. Thanks Kay, I wasn't aware of pythons ability to pass arguments to nested functions in this way. I missed it the first time. Cheers, Ron -- http://mail.python.org/mailman/listinfo/python-list