# HG changeset patch # User Paul Boddie # Date 1275691762 -7200 # Node ID 5b044511726846db3506470e9469d65a49ae515c # Parent 6409cf41ace3be3cf1dbbd1a89e0e8fe0c488f9d Added a test of nested functions. diff -r 6409cf41ace3 -r 5b0445117268 tests/nested_functions.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/nested_functions.py Sat Jun 05 00:49:22 2010 +0200 @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +def a(): + def b(p): + return p + return b + +f = a() +result_1 = f(1) + +# vim: tabstop=4 expandtab shiftwidth=4