view python/closure.py @ 626:89a72399286b

adding file demonstrating classes
author Jeff Hammel <k0scist@gmail.com>
date Mon, 17 Feb 2014 17:33:23 -0800
parents 6ae566bb1a99
children
line wrap: on
line source

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