diff example/blocks.py @ 9:fa7e285f88e7

Add a scoping pass, associating each module/statement with a block.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 01 Jun 2016 22:17:28 +0100
parents
children 3bf4903d1d2c
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/example/blocks.py
@@ -0,0 +1,5 @@
+def a(b):
+    def c():
+        return b
+    return c()
+print(a(1))