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@242 | 1 | #!/usr/bin/env python |
paul@242 | 2 | |
paul@242 | 3 | import imported |
paul@242 | 4 | |
paul@242 | 5 | m = None |
paul@242 | 6 | m = imported |
paul@242 | 7 | |
paul@242 | 8 | result_123 = m.attr |
paul@242 | 9 | result_10 = m.a |
paul@242 | 10 | |
paul@242 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |