2012-06-29 | Paul Boddie | file changeset files shortlog | Added support for module attributes that can be assigned (rebound) externally. Added a test demonstrating external module attribute modification. Updated the documentation to note the consequences of less restrictive module attribute definition. |
paul@557 | 1 | #!/usr/bin/env python |
paul@557 | 2 | |
paul@557 | 3 | import changed # access the package root |
paul@557 | 4 | |
paul@557 | 5 | # Change x in the partially imported module. |
paul@557 | 6 | |
paul@557 | 7 | changed.x = 456 |
paul@557 | 8 | |
paul@557 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |