micropython

tests/loop_while.py

82:619142384781
2008-05-10 Paul Boddie Made AddressRelativeInstruction only display instance-related details. Changed LoadAddress and StoreAddress to use AddressInstruction, which can now display Attr and other relevant objects. Removed None from the builtins module, making it a special constant. Changed module inspection so that many handlers return instances instead of None, thus producing better attributes for namespace entries. Made constants per program rather than per module. Fixed function default attributes for instantiators. Fixed optimised attribute storage involving LoadConst.
     1 #!/usr/bin/env python     2      3 class C:     4     value = "hello"     5     while x > 0:     6         subvalue = "world"     7         x -= 1     8      9 # vim: tabstop=4 expandtab shiftwidth=4