diff options
Diffstat (limited to 'Lib/test/badsyntax_future5.py')
-rw-r--r-- | Lib/test/badsyntax_future5.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/badsyntax_future5.py b/Lib/test/badsyntax_future5.py new file mode 100644 index 0000000..1186208 --- /dev/null +++ b/Lib/test/badsyntax_future5.py @@ -0,0 +1,12 @@ +"""This is a test""" +from __future__ import nested_scopes +import foo +from __future__ import nested_scopes + + +def f(x): + def g(y): + return x + y + return g + +print f(2)(4) |