diff Lib/test/test_future3.py @ 19409:bc9c8cebc2ef legacy-trunk

Add test case to cover multiple future statements on separate lines of a module.
author Jeremy Hylton <jeremy@alum.mit.edu>
date Mon, 20 Aug 2001 21:18:56 +0000
parents
children 1a42b128c581
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Lib/test/test_future3.py	Mon Aug 20 21:18:56 2001 +0000
@@ -0,0 +1,11 @@
+from __future__ import nested_scopes
+from __future__ import division
+from __future__ import nested_scopes
+
+def f(x):
+    def g(y):
+        return y // x
+    return g
+
+
+print f(2)(5)