2009-10-27 | Paul Boddie | file changeset files shortlog | Added tests for attribute deletion, currently disallowed. Added notes about attribute usage optimisation effects. |
paul@130 | 1 | #!/usr/bin/env python |
paul@130 | 2 | |
paul@130 | 3 | a = 1 |
paul@130 | 4 | b = 0 |
paul@130 | 5 | e = a and b or not a and not b |
paul@130 | 6 | |
paul@244 | 7 | if e is False: |
paul@244 | 8 | f = 0 |
paul@244 | 9 | else: |
paul@244 | 10 | f = 1 |
paul@244 | 11 | |
paul@244 | 12 | e = a and b or a and not b |
paul@244 | 13 | |
paul@244 | 14 | if e is False: |
paul@244 | 15 | g = 0 |
paul@244 | 16 | else: |
paul@244 | 17 | g = 1 |
paul@244 | 18 | |
paul@244 | 19 | result_0 = f |
paul@244 | 20 | result_1 = g |
paul@244 | 21 | |
paul@130 | 22 | # vim: tabstop=4 expandtab shiftwidth=4 |