예제 #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...'