2007-09-06 | Paul Boddie | file changeset files shortlog | Added a fully-qualified name method for WithName-derived classes, producing a more usable global name for applications such as the viewer. Added a method for returning "visible" class attributes to GeneralClass. Added an attribute table production function for integration with the explicit distribution, along with a test program option for generating such a table. |
paulb@40 | 1 | #!/usr/bin/env python |
paulb@40 | 2 | |
paulb@40 | 3 | def f(x, y): |
paulb@40 | 4 | if x < y: |
paulb@40 | 5 | return f(x + 1, y) |
paulb@40 | 6 | else: |
paulb@40 | 7 | return x |
paulb@40 | 8 | |
paulb@40 | 9 | f(3, 20) |
paulb@40 | 10 | |
paulb@40 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |