micropython

tests/logical_results.py

515:20ea2e9b841d
2012-06-03 Paul Boddie Restricted attribute assignments observed through usage analysis to instance attributes only.
     1 #!/usr/bin/env python     2      3 a = 1     4 b = 0     5 e = a and b or not a and not b     6      7 if e is False:     8     f = 0     9 else:    10     f = 1    11     12 e = a and b or a and not b    13     14 if e is False:    15     g = 0    16 else:    17     g = 1    18     19 result_0 = f    20 result_1 = g    21     22 # vim: tabstop=4 expandtab shiftwidth=4