Skip to content
Snippets Groups Projects
Select Git revision
  • dd6ad21c5393aa85fa0ef3b8b742b9bdba0098b6
  • main default protected
  • patch-1
  • rahix/ctx-fixes
  • pippin/wip
  • blm_docs
  • release/1.0.0
  • fm_fix2
  • fm_fix
  • sec/blinky
  • pippin/make_empty_drawlists_skip_render_and_blit
  • pressable_bugfix
  • moon2_gay_drums
  • moon2_applications
  • schneider/application-remove-name
  • anon/webflasher
  • pippin/display-python-errors-on-display
  • bl00mbox
  • bl00mbox_old
  • schneider/recovery
  • schneider/bhi581
  • 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
28 results

manifest.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)