view python/closure.py @ 564:047a53a8fbad

py3
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 19 Dec 2013 18:03:05 -0800
parents 6ae566bb1a99
children
line wrap: on
line source

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