2010-06-05 | Paul Boddie | file changeset files shortlog | Changed parameter initialisation to explicitly use Instance() instead of None. Made the default parameter value code use the same mechanisms as other attribute-setting code. Added tests of lambdas and nested functions with locally defined defaults. |
paul@236 | 1 | #!/usr/bin/env python |
paul@236 | 2 | |
paul@236 | 3 | def f(x): |
paul@236 | 4 | return g(x) |
paul@236 | 5 | |
paul@236 | 6 | def g(x): |
paul@236 | 7 | return x |
paul@236 | 8 | |
paul@236 | 9 | result_13579 = f(13579) |
paul@236 | 10 | |
paul@236 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |