When Closure get external variable's value?

Huayang Xia huayang.xia at gmail.com
Mon Dec 18 15:41:53 EST 2006


It will print 15. The closure gets the value at run time.

Could we treat closure as part of the external function and it shares
the local variable with its holder function?




More information about the Python-list mailing list