2010-02-07 | Paul Boddie | file changeset files shortlog | Made attribute deletion usage cause a warning during inspection, not an error, so that inspection of the test program may be performed. Added an optimisation test around guard generation for name assignments. Fixed attribute usage merging to permit the recording of isolated pockets of attribute usage that are not propagated further in a program unit. |
paul@96 | 1 | #!/usr/bin/env python |
paul@96 | 2 | |
paul@96 | 3 | import imported |
paul@96 | 4 | |
paul@242 | 5 | result_123 = imported.attr # cannot assign to this |
paul@96 | 6 | |
paul@96 | 7 | m = imported |
paul@242 | 8 | result1_10 = imported.a # can only read from the attribute, not replace it |
paul@242 | 9 | result2_10 = m.a # can only read from the attribute (m is known) |
paul@96 | 10 | |
paul@96 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |