micropython

tests/op_iadd.py

438:b547786f38c7
2011-07-02 Paul Boddie Moved some code generation methods into a new Assembler class. Separated sequence element storage into a separate method which may form the basis of a native library routine.
     1 #!/usr/bin/env python     2      3 def f(a, b):     4     a += b     5     return a     6      7 a = 1     8 b = 2     9 a += b    10 result_3 = a    11 result_4 = f(b, 2)    12 result_2 = b    13     14 # vim: tabstop=4 expandtab shiftwidth=4