micropython

tests/operator_add.py

519:814bd122d84d
2012-06-04 Paul Boddie Updated the documentation to reflect class attribute assignment policies. Added tests to demonstrate class attribute rebinding.
     1 #!/usr/bin/env python     2      3 import operator     4      5 a = 1     6 b = 2     7 c = operator.add(a, b)     8 d = operator.add(operator.add(a, b), c)     9     10 result_3 = c    11 result_6 = d    12     13 # vim: tabstop=4 expandtab shiftwidth=4