view Lib/test/badsyntax_future3.py @ 69908:9688977ef567

test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in.
author Giampaolo Rodola' <g.rodola@gmail.com>
date Sat, 07 May 2011 17:08:34 +0200
parents 47eaa38b29cb
children
line wrap: on
line source

"""This is a test"""
from __future__ import nested_scopes
from __future__ import rested_snopes

def f(x):
    def g(y):
        return x + y
    return g

result = f(2)(4)