view python/closure.py @ 256:f40a172512c6

more playing around
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 16 Dec 2012 22:51:18 -0800
parents 6ae566bb1a99
children
line wrap: on
line source

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