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@135 | 1 | def f(l): |
paulb@135 | 2 | for i in l: |
paulb@135 | 3 | if i == 3: |
paulb@135 | 4 | return 1 |
paulb@135 | 5 | elif i == 4: |
paulb@135 | 6 | break |
paulb@135 | 7 | return "1" |
paulb@135 | 8 | |
paulb@135 | 9 | x = f([1, 2, 3, 4, 5]) |