PageRenderTime 302ms CodeModel.GetById 161ms app.highlight 1ms RepoModel.GetById 140ms app.codeStats 0ms

/Lib/test/badsyntax_future6.py

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