micropython

tests/logical_results.py

253:cda541c40c81
2009-07-12 Paul Boddie Added notes on native functions and the "unused objects" optimisation. Added missing copyright and licensing information. Tidied native function generation slightly.
     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