~ubuntu-branches/ubuntu/karmic/pypy/karmic

« back to all changes in this revision

Viewing changes to lib-python/2.4.1/test/badsyntax_future3.py

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Fayolle
  • Date: 2007-04-13 09:33:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070413093309-yoojh4jcoocu2krz
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

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