コード例 #1
0
from example.macros.__macros__ import custom_loop

# this is an error: the loop needs a body
custom_loop(5)
コード例 #2
0
ファイル: test.py プロジェクト: chirayuk/karnickel
def usage_3():
    # usage of a block macro with body
    with custom_loop(10):
        print 'loop continues...'
コード例 #3
0
ファイル: test.py プロジェクト: chirayuk/karnickel
def usage_3():
    # usage of a block macro with body
    with custom_loop(10):
        print 'loop continues...'