# HG changeset patch # User Jeff Hammel # Date 1320341962 25200 # Node ID 6ae566bb1a99061e07a699b31b84c72dc62e9042 # Parent b91750a108b2519751d79bb94bd69b4c6a8384fd add an example of lack of python closures diff -r b91750a108b2 -r 6ae566bb1a99 python/closure.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/closure.py Thu Nov 03 10:39:22 2011 -0700 @@ -0,0 +1,4 @@ +directory = 'foo' +bar = lambda: directory +directory = 'fleem' +print bar()