summaryrefslogtreecommitdiffstats
path: root/Lib/test/future_test2.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/future_test2.py')
-rw-r--r--Lib/test/future_test2.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/future_test2.py b/Lib/test/future_test2.py
new file mode 100644
index 0000000..3d7fc86
--- /dev/null
+++ b/Lib/test/future_test2.py
@@ -0,0 +1,10 @@
+"""This is a test"""
+
+from __future__ import nested_scopes; import site
+
+def f(x):
+ def g(y):
+ return x + y
+ return g
+
+result = f(2)(4)