micropython

tests/attributes.py

86:12f29a090aa7
2008-05-12 Paul Boddie Added notes about the operations performed by various instructions in relation to the context of loaded data. Attempted to make invocation code generation slightly more modular. Attempted to fix argument production with respect to invocations which have an explicit context as their first argument. Made Const a subclass of Instance. Added a context attribute to instructions which should be used when examining instructions in certain optimisation situations.
     1 #!/usr/bin/env python     2      3 class C:     4     clsattr = 123     5      6     def __init__(self, value):     7         self.instattr = value     8      9 C    10 C.clsattr    11     12 # vim: tabstop=4 expandtab shiftwidth=4