/Lib/test/badsyntax_future4.py

http://unladen-swallow.googlecode.com/ · Python · 10 lines · 7 code · 2 blank · 1 comment · 0 complexity · 498093b01ece971eb9a573e451f863b7 MD5 · raw file

  1. """This is a test"""
  2. import __future__
  3. from __future__ import nested_scopes
  4. def f(x):
  5. def g(y):
  6. return x + y
  7. return g
  8. result = f(2)(4)