Skip to content
Snippets Groups Projects
Select Git revision
  • 81c46fe0b330022fe8ec841b7fb8e62507a52696
  • main default protected
  • phhw
  • captouch-threshold
  • t
  • dos
  • test2
  • test
  • slewtest
  • simtest
  • view-think
  • vm-pending
  • media-buf
  • scope
  • passthrough
  • wave
  • vsync
  • dos-main-patch-50543
  • json-error
  • rahix/big-flow3r
  • pippin/media_framework
  • v1.3.0
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
34 results

menu.py

Blame
  • Forked from flow3r / flow3r firmware
    Source project has a limited visibility.
    logic_constfolding.py 442 B
    # tests logical constant folding in parser
    
    def f_true():
        print('f_true')
        return True
    
    def f_false():
        print('f_false')
        return False
    
    print(0 or False)
    print(1 or foo)
    print(f_false() or 1 or foo)
    print(f_false() or 1 or f_true())
    
    print(0 and foo)
    print(1 and True)
    print(f_true() and 0 and foo)
    print(f_true() and 1 and f_false())
    
    print(not 0)
    print(not False)
    print(not 1)
    print(not True)
    print(not not 0)
    print(not not 1)