view python/closure.py @ 550:9149b35b8a2a

python/example/abstract.py
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 18 Nov 2013 16:17:39 -0800
parents 6ae566bb1a99
children
line wrap: on
line source

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