~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Lib/test/test_future1.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""This is a test"""
 
2
 
 
3
# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
 
4
from __future__ import nested_scopes, nested_scopes
 
5
 
 
6
def f(x):
 
7
    def g(y):
 
8
        return x + y
 
9
    return g
 
10
 
 
11
result = f(2)(4)