PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/Lib/test/badsyntax_future7.py

http://unladen-swallow.googlecode.com/
Python | 11 lines | 7 code | 3 blank | 1 comment | 0 complexity | 7c2b7e3080552e89baa970509e450867 MD5 | raw file
 1"""This is a test"""
 2
 3from __future__ import nested_scopes; import string; from __future__ import \
 4     nested_scopes
 5
 6def f(x):
 7    def g(y):
 8        return x + y
 9    return g
10
11result = f(2)(4)