view python/closure.py @ 547:2b0d254d4271

-> example
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 13 Nov 2013 20:41:56 -0800
parents 6ae566bb1a99
children
line wrap: on
line source

directory = 'foo'
bar = lambda: directory
directory = 'fleem'
print bar()