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@259 | 1 | #!/usr/bin/env python |
paul@259 | 2 | |
paul@259 | 3 | a = 1 |
paul@259 | 4 | b = 2 |
paul@259 | 5 | c = 3 |
paul@259 | 6 | |
paul@259 | 7 | result_0 = a & b |
paul@259 | 8 | result_1 = a | a & b |
paul@259 | 9 | result_2 = b & c |
paul@259 | 10 | result_3 = a | b |
paul@259 | 11 | |
paul@259 | 12 | # vim: tabstop=4 expandtab shiftwidth=4 |