view python/closure.py @ 498:95ba5770d2f0

file decorator
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 21 Aug 2013 15:54:09 -0700
parents 6ae566bb1a99
children
line wrap: on
line source

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