view python/closure.py @ 193:3efe894f9d79

add a simple example for optparse_undefined
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 20 Jan 2012 14:15:16 -0800
parents 6ae566bb1a99
children
line wrap: on
line source

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