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@109 | 1 | #!/usr/bin/env python |
paul@109 | 2 | |
paul@109 | 3 | class C: |
paul@243 | 4 | x = 111 |
paul@137 | 5 | |
paul@109 | 6 | c = C() |
paul@243 | 7 | result_111 = c.x |
paul@109 | 8 | |
paul@109 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |