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@213 | 1 | #!/usr/bin/env python |
paul@213 | 2 | |
paul@213 | 3 | def f(*args): |
paul@213 | 4 | return args |
paul@213 | 5 | |
paul@213 | 6 | x = f(1, 2, 3) |
paul@213 | 7 | |
paul@213 | 8 | # vim: tabstop=4 expandtab shiftwidth=4 |