view Lib/test/test_future3.py @ 25838:8540887bcec6 2.2

Backport of 2.183: Fix memory leak in add_subclass() found by NealN with valgrind.
author Guido van Rossum <guido@python.org>
date Fri, 18 Oct 2002 13:42:21 +0000
parents bc9c8cebc2ef
children 1a42b128c581
line wrap: on
line source

from __future__ import nested_scopes
from __future__ import division
from __future__ import nested_scopes

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


print f(2)(5)