2008-05-10 | Paul Boddie | raw annotate files changeset graph | 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 x = 123 4 5 def f(a, b, c=4): 6 pass 7 8 f(1, 2, 3) 9 f(1, b=2, c=3) 10 f(c=3, b=2, a=1) 11 f(1, 2) 12 13 g = f 14 g(1, c=3, b=2) 15 g(1, 2) 16 17 def g(a, c, b=5): 18 pass 19 20 g(1, c=3, b=2) 21 g(1, 3) 22 23 def h(a, b, c=f(1, 2, 3)): 24 pass 25 26 h(1, 2, 3) 27 h(1, 2) 28 29 # vim: tabstop=4 expandtab shiftwidth=4