PageRenderTime 51ms CodeModel.GetById 30ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/Lib/test/test_future2.py

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