tests/nested_functions_using_defaults.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/nested_functions_using_defaults.py Sat Jun 05 15:11:26 2010 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +def a(x): 1.7 + def b(p=x): 1.8 + return p 1.9 + return b 1.10 + 1.11 +f = a(2) 1.12 +result_2 = f() 1.13 + 1.14 +# vim: tabstop=4 expandtab shiftwidth=4