示例#1
0
from example.macros.__macros__ import custom_loop

# this is an error: the loop needs a body
custom_loop(5)
示例#2
0
def usage_3():
    # usage of a block macro with body
    with custom_loop(10):
        print 'loop continues...'
示例#3
0
def usage_3():
    # usage of a block macro with body
    with custom_loop(10):
        print 'loop continues...'