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@151 | 1 | #!/usr/bin/env python |
paul@151 | 2 | |
paul@151 | 3 | def f(a, b): |
paul@151 | 4 | a += b |
paul@151 | 5 | |
paul@151 | 6 | a = 1 |
paul@151 | 7 | b = 2 |
paul@151 | 8 | a += b |
paul@151 | 9 | |
paul@151 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |