~malept/ubuntu/lucid/python2.6/dev-dependency-fix

« back to all changes in this revision

Viewing changes to Lib/test/badsyntax_future7.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-13 12:51:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090213125100-uufgcb9yeqzujpqw
Tags: upstream-2.6.1
ImportĀ upstreamĀ versionĀ 2.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""This is a test"""
 
2
 
 
3
from __future__ import nested_scopes; import string; from __future__ import \
 
4
     nested_scopes
 
5
 
 
6
def f(x):
 
7
    def g(y):
 
8
        return x + y
 
9
    return g
 
10
 
 
11
result = f(2)(4)