2012-06-30 | Paul Boddie | raw annotate files changeset graph | Added imported name storage (necessary where such names are not constant). Made a convenience method for storing working values as local names. Removed instance-related code where guards test for module types. Changed the _generateName method to perform scope discovery internally. |
1 #!/usr/bin/env python 2 3 import imported 4 5 result_123 = imported.attr # cannot assign to this 6 7 m = imported 8 result1_10 = imported.a # can only read from the attribute, not replace it 9 result2_10 = m.a # can only read from the attribute (m is known) 10 11 # vim: tabstop=4 expandtab shiftwidth=4